Return Err on shutdown

This commit is contained in:
Bojan Serafimov
2022-06-20 10:33:05 -04:00
parent bdfe7dacef
commit 8b38295f02

View File

@@ -287,8 +287,8 @@ impl<'a> Read for CopyInReader<'a> {
}
// Shutting down
// TODO is this fine?
Ok(0)
let msg = "Importer thread was shut down";
Err(io::Error::new(io::ErrorKind::Other, msg))
}
}