@@ -14,7 +14,7 @@ use crate::{
14
14
api:: { blobs:: Bitfield , Store } ,
15
15
get,
16
16
hashseq:: HashSeq ,
17
- net_protocol:: Blobs ,
17
+ net_protocol:: BlobsProtocol ,
18
18
protocol:: { ChunkRangesSeq , GetManyRequest , ObserveRequest , PushRequest } ,
19
19
provider:: Event ,
20
20
store:: {
@@ -490,7 +490,7 @@ pub async fn node_test_setup_with_events_fs(
490
490
) -> TestResult < ( Router , FsStore , PathBuf ) > {
491
491
let store = crate :: store:: fs:: FsStore :: load ( & db_path) . await ?;
492
492
let ep = Endpoint :: builder ( ) . bind ( ) . await ?;
493
- let blobs = Blobs :: new ( & store, ep. clone ( ) , events) ;
493
+ let blobs = BlobsProtocol :: new ( & store, ep. clone ( ) , events) ;
494
494
let router = Router :: builder ( ep) . accept ( crate :: ALPN , blobs) . spawn ( ) ;
495
495
Ok ( ( router, store, db_path) )
496
496
}
@@ -504,7 +504,7 @@ pub async fn node_test_setup_with_events_mem(
504
504
) -> TestResult < ( Router , MemStore ) > {
505
505
let store = MemStore :: new ( ) ;
506
506
let ep = Endpoint :: builder ( ) . bind ( ) . await ?;
507
- let blobs = Blobs :: new ( & store, ep. clone ( ) , events) ;
507
+ let blobs = BlobsProtocol :: new ( & store, ep. clone ( ) , events) ;
508
508
let router = Router :: builder ( ep) . accept ( crate :: ALPN , blobs) . spawn ( ) ;
509
509
Ok ( ( router, store) )
510
510
}
@@ -601,7 +601,7 @@ async fn node_serve_hash_seq() -> TestResult<()> {
601
601
let root_tt = store. add_bytes ( hash_seq) . await ?;
602
602
let root = root_tt. hash ;
603
603
let endpoint = Endpoint :: builder ( ) . discovery_n0 ( ) . bind ( ) . await ?;
604
- let blobs = crate :: net_protocol:: Blobs :: new ( & store, endpoint. clone ( ) , None ) ;
604
+ let blobs = crate :: net_protocol:: BlobsProtocol :: new ( & store, endpoint. clone ( ) , None ) ;
605
605
let r1 = Router :: builder ( endpoint)
606
606
. accept ( crate :: protocol:: ALPN , blobs)
607
607
. spawn ( ) ;
@@ -632,7 +632,7 @@ async fn node_serve_blobs() -> TestResult<()> {
632
632
tts. push ( store. add_bytes ( test_data ( size) ) . await ?) ;
633
633
}
634
634
let endpoint = Endpoint :: builder ( ) . discovery_n0 ( ) . bind ( ) . await ?;
635
- let blobs = crate :: net_protocol:: Blobs :: new ( & store, endpoint. clone ( ) , None ) ;
635
+ let blobs = crate :: net_protocol:: BlobsProtocol :: new ( & store, endpoint. clone ( ) , None ) ;
636
636
let r1 = Router :: builder ( endpoint)
637
637
. accept ( crate :: protocol:: ALPN , blobs)
638
638
. spawn ( ) ;
@@ -674,7 +674,7 @@ async fn node_smoke(store: &Store) -> TestResult<()> {
674
674
let tt = store. add_bytes ( b"hello world" . to_vec ( ) ) . temp_tag ( ) . await ?;
675
675
let hash = * tt. hash ( ) ;
676
676
let endpoint = Endpoint :: builder ( ) . discovery_n0 ( ) . bind ( ) . await ?;
677
- let blobs = crate :: net_protocol:: Blobs :: new ( store, endpoint. clone ( ) , None ) ;
677
+ let blobs = crate :: net_protocol:: BlobsProtocol :: new ( store, endpoint. clone ( ) , None ) ;
678
678
let r1 = Router :: builder ( endpoint)
679
679
. accept ( crate :: protocol:: ALPN , blobs)
680
680
. spawn ( ) ;
0 commit comments