better combinator
This commit is contained in:
parent
7acc126de2
commit
96a6b76baa
1 changed files with 1 additions and 1 deletions
2
src/cache/mod.rs
vendored
2
src/cache/mod.rs
vendored
|
@ -233,7 +233,7 @@ impl CacheStream {
|
|||
Ok(Self {
|
||||
inner,
|
||||
decrypt: header
|
||||
.map(|header| SecretStream::init_pull(&header, ENCRYPTION_KEY.get().unwrap()))
|
||||
.and_then(|header| ENCRYPTION_KEY.get().map(|key| SecretStream::init_pull(&header, key)))
|
||||
.transpose()?,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue