diff --git a/nucliadb_node/src/replication/service.rs b/nucliadb_node/src/replication/service.rs index 3a76b23d5e..62b6e8b300 100644 --- a/nucliadb_node/src/replication/service.rs +++ b/nucliadb_node/src/replication/service.rs @@ -61,13 +61,7 @@ async fn stream_file( file: std::fs::File, sender: &tokio::sync::mpsc::Sender>, ) -> NodeResult<()> { - let filepath = shard_path.join(rel_filepath); - - if !filepath.exists() { - return Err(node_error!("This file can not be streamed because it does not exist")); - } - - debug!("Streaming file {}", filepath.to_string_lossy()); + debug!("Streaming file {}", rel_filepath.to_string_lossy()); let mut total = 0; let mut chunk = 1; let mut file = File::from_std(file);