Skip to content
Snippets Groups Projects

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

2 files
+ 26
17
Compare changes
  • Side-by-side
  • Inline

Files

+ 3
2
@@ -111,6 +111,7 @@ pub(crate) enum DragoonCommand {
},
GetFile {
file_hash: String,
output_filename: String,
powers_path: String,
sender: SenderOneS<String>,
},
@@ -318,11 +319,11 @@ pub(crate) async fn create_cmd_get_connected_peers(State(state): State<Arc<AppSt
}
pub(crate) async fn create_cmd_get_file(
Path((file_hash, powers_path)): Path<(String, String)>,
Path((file_hash, output_filename, powers_path)): Path<(String, String, String)>,
State(state): State<Arc<AppState>>,
) -> Response {
info!("running command get_file");
dragoon_command!(state, GetFile, file_hash, powers_path)
dragoon_command!(state, GetFile, file_hash, output_filename, powers_path)
}
pub(crate) async fn create_cmd_get_listeners(State(state): State<Arc<AppState>>) -> Response {
Loading