@@ -494,7 +494,7 @@ pub async fn node_test_setup_with_events_fs(
494
494
) -> TestResult < ( Router , FsStore , PathBuf ) > {
495
495
let store = crate :: store:: fs:: FsStore :: load ( & db_path) . await ?;
496
496
let ep = Endpoint :: builder ( ) . bind ( ) . await ?;
497
- let blobs = BlobsProtocol :: new ( & store, ep. clone ( ) , events) ;
497
+ let blobs = BlobsProtocol :: new ( & store, ep. clone ( ) , Some ( events) ) ;
498
498
let router = Router :: builder ( ep) . accept ( crate :: ALPN , blobs) . spawn ( ) ;
499
499
Ok ( ( router, store, db_path) )
500
500
}
@@ -508,7 +508,7 @@ pub async fn node_test_setup_with_events_mem(
508
508
) -> TestResult < ( Router , MemStore ) > {
509
509
let store = MemStore :: new ( ) ;
510
510
let ep = Endpoint :: builder ( ) . bind ( ) . await ?;
511
- let blobs = BlobsProtocol :: new ( & store, ep. clone ( ) , events) ;
511
+ let blobs = BlobsProtocol :: new ( & store, ep. clone ( ) , Some ( events) ) ;
512
512
let router = Router :: builder ( ep) . accept ( crate :: ALPN , blobs) . spawn ( ) ;
513
513
Ok ( ( router, store) )
514
514
}
@@ -605,8 +605,7 @@ async fn node_serve_hash_seq() -> TestResult<()> {
605
605
let root_tt = store. add_bytes ( hash_seq) . await ?;
606
606
let root = root_tt. hash ;
607
607
let endpoint = Endpoint :: builder ( ) . discovery_n0 ( ) . bind ( ) . await ?;
608
- let blobs =
609
- crate :: net_protocol:: BlobsProtocol :: new ( & store, endpoint. clone ( ) , EventSender :: NONE ) ;
608
+ let blobs = crate :: net_protocol:: BlobsProtocol :: new ( & store, endpoint. clone ( ) , None ) ;
610
609
let r1 = Router :: builder ( endpoint)
611
610
. accept ( crate :: protocol:: ALPN , blobs)
612
611
. spawn ( ) ;
@@ -637,8 +636,7 @@ async fn node_serve_blobs() -> TestResult<()> {
637
636
tts. push ( store. add_bytes ( test_data ( size) ) . await ?) ;
638
637
}
639
638
let endpoint = Endpoint :: builder ( ) . discovery_n0 ( ) . bind ( ) . await ?;
640
- let blobs =
641
- crate :: net_protocol:: BlobsProtocol :: new ( & store, endpoint. clone ( ) , EventSender :: NONE ) ;
639
+ let blobs = crate :: net_protocol:: BlobsProtocol :: new ( & store, endpoint. clone ( ) , None ) ;
642
640
let r1 = Router :: builder ( endpoint)
643
641
. accept ( crate :: protocol:: ALPN , blobs)
644
642
. spawn ( ) ;
@@ -680,7 +678,7 @@ async fn node_smoke(store: &Store) -> TestResult<()> {
680
678
let tt = store. add_bytes ( b"hello world" . to_vec ( ) ) . temp_tag ( ) . await ?;
681
679
let hash = * tt. hash ( ) ;
682
680
let endpoint = Endpoint :: builder ( ) . discovery_n0 ( ) . bind ( ) . await ?;
683
- let blobs = crate :: net_protocol:: BlobsProtocol :: new ( store, endpoint. clone ( ) , EventSender :: NONE ) ;
681
+ let blobs = crate :: net_protocol:: BlobsProtocol :: new ( store, endpoint. clone ( ) , None ) ;
684
682
let r1 = Router :: builder ( endpoint)
685
683
. accept ( crate :: protocol:: ALPN , blobs)
686
684
. spawn ( ) ;
0 commit comments