diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-11-04 15:11:25 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-11-04 16:20:27 +0100 |
commit | 32b93364165ddc24d29ea7319db6a21b6fe5a515 (patch) | |
tree | 24c31c2afe783b86c3a81ed3fb9bccca4cf54407 /openpgp/src/parse/stream.rs | |
parent | 9edc6b6f7e9e05bfd4d6ac0573c2b81f934ebaae (diff) |
make stream::Message::finalize asyncjustus/fix-607
- For sop which only uses local keys, we do not need a runtime.
Diffstat (limited to 'openpgp/src/parse/stream.rs')
-rw-r--r-- | openpgp/src/parse/stream.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index 3fee1267..2bfa7c49 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -2808,6 +2808,7 @@ impl<'a, H: VerificationHelper + DecryptionHelper> io::Read for Decryptor<'a, H> #[cfg(test)] mod test { + use futures::FutureExt; use super::*; use std::convert::TryFrom; use crate::parse::Parse; @@ -3200,7 +3201,7 @@ mod test { let mut ls = LiteralWriter::new(signer).build().unwrap(); ls.write_all(&mut vec![42u8; 3 * 1024 * 1024]).unwrap(); - ls.finalize().unwrap(); + ls.finalize().now_or_never().unwrap().unwrap(); } // Test Verifier. |