fix(tvix/store): Fix narinfo compression selection
Parsing of the narinfo file sets the compression field to None instead of Some("none"). The mapping selecting the decompression reader expected the former in //tvix/store/src/pathinfoservice/nix_http.rs. Change-Id: I254a825b88a4016aab087446bdc0c7b6286de40c
This commit is contained in:
parent
1f89cf9027
commit
c000e67769
1 changed files with 2 additions and 2 deletions
|
@ -179,8 +179,8 @@ where
|
|||
|
||||
// handle decompression, depending on the compression field.
|
||||
let mut r: Box<dyn AsyncRead + Send + Unpin> = match narinfo.compression {
|
||||
Some("none") => Box::new(r) as Box<dyn AsyncRead + Send + Unpin>,
|
||||
Some("bzip2") | None => Box::new(async_compression::tokio::bufread::BzDecoder::new(r))
|
||||
Some("none") | None => Box::new(r) as Box<dyn AsyncRead + Send + Unpin>,
|
||||
Some("bzip2") => Box::new(async_compression::tokio::bufread::BzDecoder::new(r))
|
||||
as Box<dyn AsyncRead + Send + Unpin>,
|
||||
Some("gzip") => Box::new(async_compression::tokio::bufread::GzipDecoder::new(r))
|
||||
as Box<dyn AsyncRead + Send + Unpin>,
|
||||
|
|
Loading…
Reference in a new issue