Skip to content

Commit

Permalink
config: allow setting compression
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Aug 14, 2024
1 parent 9612df2 commit 7ca8448
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ impl<C: Compressor + Clone + Default> Default for Config<C> {
}

impl<C: Compressor + Clone> Config<C> {
/// Sets the compression & decompression scheme.
#[must_use]
pub fn compression(mut self, compressor: C) -> Self {
self.compression = compressor;
self
}

/// Sets the blob cache.
///
/// You can create a global [`BlobCache`] and share it between multiple
Expand Down

0 comments on commit 7ca8448

Please sign in to comment.