Skip to content

Commit

Permalink
db-ingest: Change file extension for zstd compression
Browse files Browse the repository at this point in the history
  • Loading branch information
raimannma committed Oct 9, 2024
1 parent 7543fbe commit a84876a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db-ingest/src/models/compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl Display for Compression {
match self {
Self::Uncompressed => write!(f, ""),
Self::Bzip2 => write!(f, "bz2"),
Self::Zstd => write!(f, "zstd"),
Self::Zstd => write!(f, "zst"),
}
}
}
Expand All @@ -75,6 +75,7 @@ impl FromStr for Compression {
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s {
"bz2" => Ok(Self::Bzip2),
"zst" => Ok(Self::Zstd),
_ => Err(ParseError::UnknownVariant),
}
}
Expand Down

0 comments on commit a84876a

Please sign in to comment.