@@ -11,7 +11,7 @@ use bytes::Bytes;
11
11
use futures_lite:: { Stream , StreamExt } ;
12
12
use genawaiter:: sync:: { Co , Gen } ;
13
13
use iroh_blobs:: {
14
- fetch :: fsm:: { AtInitial , BlobContentNext , ConnectedNext , EndBlobNext } ,
14
+ get :: fsm:: { AtInitial , BlobContentNext , ConnectedNext , EndBlobNext } ,
15
15
hashseq:: HashSeq ,
16
16
protocol:: GetRequest ,
17
17
Hash ,
@@ -68,7 +68,7 @@ async fn main() -> Result<()> {
68
68
let request = GetRequest :: all ( hash) ;
69
69
70
70
// create the initial state of the finite state machine
71
- let initial = iroh_blobs:: fetch :: fsm:: start ( connection, request) ;
71
+ let initial = iroh_blobs:: get :: fsm:: start ( connection, request) ;
72
72
73
73
// create a stream that yields all the data of the blob
74
74
stream_children ( initial) . boxed_local ( )
@@ -77,7 +77,7 @@ async fn main() -> Result<()> {
77
77
let request = GetRequest :: single ( hash) ;
78
78
79
79
// create the initial state of the finite state machine
80
- let initial = iroh_blobs:: fetch :: fsm:: start ( connection, request) ;
80
+ let initial = iroh_blobs:: get :: fsm:: start ( connection, request) ;
81
81
82
82
// create a stream that yields all the data of the blob
83
83
stream_blob ( initial) . boxed_local ( )
@@ -166,7 +166,7 @@ fn stream_children(initial: AtInitial) -> impl Stream<Item = io::Result<Bytes>>
166
166
) ) ;
167
167
}
168
168
// move to the header
169
- let header: iroh_blobs:: fetch :: fsm:: AtBlobHeader = start_root. next ( ) ;
169
+ let header: iroh_blobs:: get :: fsm:: AtBlobHeader = start_root. next ( ) ;
170
170
let ( root_end, hashes_bytes) = header. concatenate_into_vec ( ) . await ?;
171
171
172
172
// parse the hashes from the hash sequence bytes
0 commit comments