Skip to content
Snippets Groups Projects

Write `get-file` and commands to get the list of blocks from another node

1 file
+ 0
4
Compare changes
  • Side-by-side
  • Inline
+ 0
4
@@ -605,9 +605,7 @@ where
tokio::spawn(async move {
// instead of returning the stream directly through the Sender, put it in a Vec format so it's easier to read for the person getting it
let mut all_providers = Vec::<PeerId>::default();
debug!("hello there");
while let Some(provider) = provider_stream.next().await {
debug!("got there");
all_providers.push(provider);
}
if sender.send(Ok(all_providers)).is_err() {
@@ -986,8 +984,6 @@ where
}
};
debug!("got here");
providers.boxed()
}
Loading