Send Message::Eof after writing archive tail

This commit is contained in:
Nathan Fisher 2023-07-06 22:21:59 -04:00
parent 04d2fb2bf4
commit f2fff3ce76

View File

@ -121,5 +121,6 @@ pub fn par_stream_archive<W: Write + Send>(
})?;
let mut writer = writer.into_inner().map_err(|_| Error::MutexError)?;
writer.write_all(&[0; 8])?;
sender.send(Message::Eof).map_err(|_| Error::SenderError)?;
Ok(())
}