@@ -11,7 +11,7 @@ use bytes::Bytes;
1111use futures_lite:: { Stream , StreamExt } ;
1212use genawaiter:: sync:: { Co , Gen } ;
1313use iroh_blobs:: {
14- fetch :: fsm:: { AtInitial , BlobContentNext , ConnectedNext , EndBlobNext } ,
14+ get :: fsm:: { AtInitial , BlobContentNext , ConnectedNext , EndBlobNext } ,
1515 hashseq:: HashSeq ,
1616 protocol:: GetRequest ,
1717 Hash ,
@@ -68,7 +68,7 @@ async fn main() -> Result<()> {
6868 let request = GetRequest :: all ( hash) ;
6969
7070 // 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) ;
7272
7373 // create a stream that yields all the data of the blob
7474 stream_children ( initial) . boxed_local ( )
@@ -77,7 +77,7 @@ async fn main() -> Result<()> {
7777 let request = GetRequest :: single ( hash) ;
7878
7979 // 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) ;
8181
8282 // create a stream that yields all the data of the blob
8383 stream_blob ( initial) . boxed_local ( )
@@ -166,7 +166,7 @@ fn stream_children(initial: AtInitial) -> impl Stream<Item = io::Result<Bytes>>
166166 ) ) ;
167167 }
168168 // 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 ( ) ;
170170 let ( root_end, hashes_bytes) = header. concatenate_into_vec ( ) . await ?;
171171
172172 // parse the hashes from the hash sequence bytes
0 commit comments