Compare commits

..

1 Commits

Author SHA1 Message Date
2555de637f Update Rust crate tokio to 1.46.0
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
2025-07-03 00:08:16 +00:00

View File

@ -102,7 +102,7 @@ struct SendWrapper(mpsc::SyncSender<Vec<u8>>);
impl Write for SendWrapper {
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
if let Err(e) = self.0.send(buf.to_vec()) {
log::error!("Failed to send a chunk of data! {e}");
log::error!("Failed to send a chunk of data! {}", e);
return Err(std::io::Error::other(
"Failed to send a chunk of data!",
));
@ -127,7 +127,7 @@ impl FileStreamer {
for file in files_list() {
let file_path = &file.to_str().unwrap().replace(&ARGS.target_dir, "")[1..];
log::debug!("Add {file_path} to archive");
log::debug!("Add {} to archive", file_path);
tar.append_file(
file_path,
&mut File::open(&file).expect("Failed to open file"),
@ -149,7 +149,7 @@ impl Stream for FileStreamer {
match self.receive.recv() {
Ok(d) => Poll::Ready(Some(Ok(Bytes::copy_from_slice(&d)))),
Err(e) => {
log::error!("Recv error: {e}");
log::error!("Recv error: {}", e);
Poll::Ready(None)
}
}