Skip to content
Snippets Groups Projects

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

3 files
+ 29
19
Compare changes
  • Side-by-side
  • Inline

Files

+ 4
2
@@ -117,7 +117,7 @@ pub(crate) enum DragoonCommand {
file_hash: String,
output_filename: String,
powers_path: String,
sender: Sender<String>,
sender: Sender<PathBuf>,
},
GetFileDir {
file_hash: String,
@@ -417,7 +417,9 @@ pub(crate) async fn create_cmd_start_provide(
// End of dragoon command implementation
fn handle_dragoon_error(err: Box<dyn Error + Send>, command: &str) -> Response {
format!("Got error from command `{}`: {}", command, err).into_response()
let err_msg = format!("Got error from command `{}`: {}", command, err);
error!(err_msg);
DragoonError::UnexpectedError(err_msg).into_response()
}
fn handle_canceled(err: RecvError, command: &str) -> Response {
Loading