Compare commits
1 Commits
336baab973
...
2888637bed
Author | SHA1 | Date | |
---|---|---|---|
2888637bed |
@ -1,5 +1,5 @@
|
|||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::Write;
|
use std::io::{ErrorKind, Write};
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
use std::sync::mpsc;
|
use std::sync::mpsc;
|
||||||
@ -103,7 +103,8 @@ impl Write for SendWrapper {
|
|||||||
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
|
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
|
||||||
if let Err(e) = self.0.send(buf.to_vec()) {
|
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(
|
return Err(std::io::Error::new(
|
||||||
|
ErrorKind::Other,
|
||||||
"Failed to send a chunk of data!",
|
"Failed to send a chunk of data!",
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user