@@ -494,7 +494,7 @@ pub async fn node_test_setup_with_events_fs(
494494) -> TestResult < ( Router , FsStore , PathBuf ) > {
495495 let store = crate :: store:: fs:: FsStore :: load ( & db_path) . await ?;
496496 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) ) ;
498498 let router = Router :: builder ( ep) . accept ( crate :: ALPN , blobs) . spawn ( ) ;
499499 Ok ( ( router, store, db_path) )
500500}
@@ -508,7 +508,7 @@ pub async fn node_test_setup_with_events_mem(
508508) -> TestResult < ( Router , MemStore ) > {
509509 let store = MemStore :: new ( ) ;
510510 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) ) ;
512512 let router = Router :: builder ( ep) . accept ( crate :: ALPN , blobs) . spawn ( ) ;
513513 Ok ( ( router, store) )
514514}
@@ -605,8 +605,7 @@ async fn node_serve_hash_seq() -> TestResult<()> {
605605 let root_tt = store. add_bytes ( hash_seq) . await ?;
606606 let root = root_tt. hash ;
607607 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 ) ;
610609 let r1 = Router :: builder ( endpoint)
611610 . accept ( crate :: protocol:: ALPN , blobs)
612611 . spawn ( ) ;
@@ -637,8 +636,7 @@ async fn node_serve_blobs() -> TestResult<()> {
637636 tts. push ( store. add_bytes ( test_data ( size) ) . await ?) ;
638637 }
639638 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 ) ;
642640 let r1 = Router :: builder ( endpoint)
643641 . accept ( crate :: protocol:: ALPN , blobs)
644642 . spawn ( ) ;
@@ -680,7 +678,7 @@ async fn node_smoke(store: &Store) -> TestResult<()> {
680678 let tt = store. add_bytes ( b"hello world" . to_vec ( ) ) . temp_tag ( ) . await ?;
681679 let hash = * tt. hash ( ) ;
682680 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 ) ;
684682 let r1 = Router :: builder ( endpoint)
685683 . accept ( crate :: protocol:: ALPN , blobs)
686684 . spawn ( ) ;
0 commit comments