@@ -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 ( ) , Some ( events) ) ;
497+ let blobs = BlobsProtocol :: new ( & store, 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 ( ) , Some ( events) ) ;
511+ let blobs = BlobsProtocol :: new ( & store, Some ( events) ) ;
512512 let router = Router :: builder ( ep) . accept ( crate :: ALPN , blobs) . spawn ( ) ;
513513 Ok ( ( router, store) )
514514}
@@ -604,7 +604,7 @@ async fn node_serve_hash_seq() -> TestResult<()> {
604604 let root_tt = store. add_bytes ( hash_seq) . await ?;
605605 let root = root_tt. hash ;
606606 let endpoint = Endpoint :: builder ( ) . discovery_n0 ( ) . bind ( ) . await ?;
607- let blobs = crate :: net_protocol:: BlobsProtocol :: new ( & store, endpoint . clone ( ) , None ) ;
607+ let blobs = crate :: net_protocol:: BlobsProtocol :: new ( & store, None ) ;
608608 let r1 = Router :: builder ( endpoint)
609609 . accept ( crate :: protocol:: ALPN , blobs)
610610 . spawn ( ) ;
@@ -635,7 +635,7 @@ async fn node_serve_blobs() -> TestResult<()> {
635635 tts. push ( store. add_bytes ( test_data ( size) ) . await ?) ;
636636 }
637637 let endpoint = Endpoint :: builder ( ) . discovery_n0 ( ) . bind ( ) . await ?;
638- let blobs = crate :: net_protocol:: BlobsProtocol :: new ( & store, endpoint . clone ( ) , None ) ;
638+ let blobs = crate :: net_protocol:: BlobsProtocol :: new ( & store, None ) ;
639639 let r1 = Router :: builder ( endpoint)
640640 . accept ( crate :: protocol:: ALPN , blobs)
641641 . spawn ( ) ;
@@ -675,7 +675,7 @@ async fn node_smoke(store: &Store) -> TestResult<()> {
675675 let tt = store. add_bytes ( b"hello world" . to_vec ( ) ) . temp_tag ( ) . await ?;
676676 let hash = * tt. hash ( ) ;
677677 let endpoint = Endpoint :: builder ( ) . discovery_n0 ( ) . bind ( ) . await ?;
678- let blobs = crate :: net_protocol:: BlobsProtocol :: new ( store, endpoint . clone ( ) , None ) ;
678+ let blobs = crate :: net_protocol:: BlobsProtocol :: new ( store, None ) ;
679679 let r1 = Router :: builder ( endpoint)
680680 . accept ( crate :: protocol:: ALPN , blobs)
681681 . spawn ( ) ;
0 commit comments