Fix webmetro send
not exiting when stdin ends.
This commit is contained in:
parent
b64e3f4bac
commit
26930b07e0
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ pub fn run(args: &ArgMatches) -> Result<(), WebmetroError> {
|
|||
chunk_stream = Box::new(chunk_stream.throttle());
|
||||
}
|
||||
|
||||
Runtime::new().unwrap().block_on_all(chunk_stream.for_each(|chunk| {
|
||||
Runtime::new().unwrap().block_on(chunk_stream.for_each(|chunk| {
|
||||
io::stdout().write_all(chunk.as_ref()).map_err(WebmetroError::IoError)
|
||||
}))
|
||||
}
|
||||
|
|
|
@ -72,5 +72,5 @@ pub fn run(args: &ArgMatches) -> Result<(), WebmetroError> {
|
|||
})
|
||||
.map_err(WebmetroError::from_err);
|
||||
|
||||
Runtime::new().unwrap().block_on_all(future)
|
||||
Runtime::new().unwrap().block_on(future)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue