Compare commits
2 Commits
2888637bed
...
336baab973
Author | SHA1 | Date | |
---|---|---|---|
336baab973 | |||
ea23904be6 |
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -1565,9 +1565,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tokio"
|
||||
version = "1.45.0"
|
||||
version = "1.45.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2513ca694ef9ede0fb23fe71a4ee4107cb102b9dc1930f6d0fd77aae068ae165"
|
||||
checksum = "75ef51a33ef1da925cea3e4eb122833cb377c61439ca401b770f54902b806779"
|
||||
dependencies = [
|
||||
"backtrace",
|
||||
"bytes",
|
||||
|
@ -15,4 +15,4 @@ log = "0.4.27"
|
||||
env_logger = "0.11.8"
|
||||
actix-web-httpauth = "0.8.2"
|
||||
askama = "0.14.0"
|
||||
tokio = "1.45.0"
|
||||
tokio = "1.45.1"
|
||||
|
@ -1,5 +1,5 @@
|
||||
use std::fs::File;
|
||||
use std::io::{ErrorKind, Write};
|
||||
use std::io::Write;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::pin::Pin;
|
||||
use std::sync::mpsc;
|
||||
@ -103,8 +103,7 @@ 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);
|
||||
return Err(std::io::Error::new(
|
||||
ErrorKind::Other,
|
||||
return Err(std::io::Error::other(
|
||||
"Failed to send a chunk of data!",
|
||||
));
|
||||
}
|
||||
|
Reference in New Issue
Block a user