@@ -396,9 +396,15 @@ pub mod test {
396396 let ctx = RequestContext :: new (
397397 Authenticated :: Anonymous ,
398398 NamespaceName :: default ( ) ,
399- MetaStore :: new ( Default :: default ( ) , tmp. path ( ) , maker ( ) . unwrap ( ) , manager)
400- . await
401- . unwrap ( ) ,
399+ MetaStore :: new (
400+ Default :: default ( ) ,
401+ tmp. path ( ) ,
402+ maker ( ) . unwrap ( ) ,
403+ manager,
404+ crate :: database:: DatabaseKind :: Primary ,
405+ )
406+ . await
407+ . unwrap ( ) ,
402408 ) ;
403409 let stream = make_proxy_stream ( conn, ctx, ReceiverStream :: new ( rcv) ) ;
404410 pin ! ( stream) ;
@@ -422,9 +428,15 @@ pub mod test {
422428 let ctx = RequestContext :: new (
423429 Authenticated :: FullAccess ,
424430 NamespaceName :: default ( ) ,
425- MetaStore :: new ( Default :: default ( ) , tmp. path ( ) , maker ( ) . unwrap ( ) , manager)
426- . await
427- . unwrap ( ) ,
431+ MetaStore :: new (
432+ Default :: default ( ) ,
433+ tmp. path ( ) ,
434+ maker ( ) . unwrap ( ) ,
435+ manager,
436+ crate :: database:: DatabaseKind :: Primary ,
437+ )
438+ . await
439+ . unwrap ( ) ,
428440 ) ;
429441 let stream = make_proxy_stream ( conn, ctx, ReceiverStream :: new ( rcv) ) ;
430442
@@ -444,9 +456,15 @@ pub mod test {
444456 let ctx = RequestContext :: new (
445457 Authenticated :: FullAccess ,
446458 NamespaceName :: default ( ) ,
447- MetaStore :: new ( Default :: default ( ) , tmp. path ( ) , maker ( ) . unwrap ( ) , manager)
448- . await
449- . unwrap ( ) ,
459+ MetaStore :: new (
460+ Default :: default ( ) ,
461+ tmp. path ( ) ,
462+ maker ( ) . unwrap ( ) ,
463+ manager,
464+ crate :: database:: DatabaseKind :: Primary ,
465+ )
466+ . await
467+ . unwrap ( ) ,
450468 ) ;
451469 let stream = make_proxy_stream ( conn, ctx, ReceiverStream :: new ( rcv) ) ;
452470
@@ -468,9 +486,15 @@ pub mod test {
468486 let ctx = RequestContext :: new (
469487 Authenticated :: FullAccess ,
470488 NamespaceName :: default ( ) ,
471- MetaStore :: new ( Default :: default ( ) , tmp. path ( ) , maker ( ) . unwrap ( ) , manager)
472- . await
473- . unwrap ( ) ,
489+ MetaStore :: new (
490+ Default :: default ( ) ,
491+ tmp. path ( ) ,
492+ maker ( ) . unwrap ( ) ,
493+ manager,
494+ crate :: database:: DatabaseKind :: Primary ,
495+ )
496+ . await
497+ . unwrap ( ) ,
474498 ) ;
475499 // limit the size of the response to force a split
476500 let stream = make_proxy_stream_inner ( conn, ctx, ReceiverStream :: new ( rcv) , 500 ) ;
@@ -525,9 +549,15 @@ pub mod test {
525549 let ctx = RequestContext :: new (
526550 Authenticated :: FullAccess ,
527551 NamespaceName :: default ( ) ,
528- MetaStore :: new ( Default :: default ( ) , tmp. path ( ) , maker ( ) . unwrap ( ) , manager)
529- . await
530- . unwrap ( ) ,
552+ MetaStore :: new (
553+ Default :: default ( ) ,
554+ tmp. path ( ) ,
555+ maker ( ) . unwrap ( ) ,
556+ manager,
557+ crate :: database:: DatabaseKind :: Primary ,
558+ )
559+ . await
560+ . unwrap ( ) ,
531561 ) ;
532562 let stream = make_proxy_stream ( conn, ctx, ReceiverStream :: new ( rcv) ) ;
533563
@@ -552,9 +582,15 @@ pub mod test {
552582 let ctx = RequestContext :: new (
553583 Authenticated :: FullAccess ,
554584 NamespaceName :: default ( ) ,
555- MetaStore :: new ( Default :: default ( ) , tmp. path ( ) , maker ( ) . unwrap ( ) , manager)
556- . await
557- . unwrap ( ) ,
585+ MetaStore :: new (
586+ Default :: default ( ) ,
587+ tmp. path ( ) ,
588+ maker ( ) . unwrap ( ) ,
589+ manager,
590+ crate :: database:: DatabaseKind :: Primary ,
591+ )
592+ . await
593+ . unwrap ( ) ,
558594 ) ;
559595 let stream = make_proxy_stream ( conn, ctx, ReceiverStream :: new ( rcv) ) ;
560596
@@ -579,9 +615,15 @@ pub mod test {
579615 let ctx = RequestContext :: new (
580616 Authenticated :: FullAccess ,
581617 NamespaceName :: default ( ) ,
582- MetaStore :: new ( Default :: default ( ) , tmp. path ( ) , maker ( ) . unwrap ( ) , manager)
583- . await
584- . unwrap ( ) ,
618+ MetaStore :: new (
619+ Default :: default ( ) ,
620+ tmp. path ( ) ,
621+ maker ( ) . unwrap ( ) ,
622+ manager,
623+ crate :: database:: DatabaseKind :: Primary ,
624+ )
625+ . await
626+ . unwrap ( ) ,
585627 ) ;
586628 let stream = make_proxy_stream ( conn, ctx, ReceiverStream :: new ( rcv) ) ;
587629
@@ -608,9 +650,15 @@ pub mod test {
608650 let ctx = RequestContext :: new (
609651 Authenticated :: FullAccess ,
610652 NamespaceName :: default ( ) ,
611- MetaStore :: new ( Default :: default ( ) , tmp. path ( ) , maker ( ) . unwrap ( ) , manager)
612- . await
613- . unwrap ( ) ,
653+ MetaStore :: new (
654+ Default :: default ( ) ,
655+ tmp. path ( ) ,
656+ maker ( ) . unwrap ( ) ,
657+ manager,
658+ crate :: database:: DatabaseKind :: Primary ,
659+ )
660+ . await
661+ . unwrap ( ) ,
614662 ) ;
615663 let stream = make_proxy_stream ( conn, ctx, ReceiverStream :: new ( rcv) ) ;
616664
0 commit comments