[#1715] blobstor: Allow to specify custom compression level

Change-Id: I140c39b9dceaaeb58767061b131777af22242b19
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2025-04-14 15:39:56 +03:00
parent 2d1232ce6d
commit 98308d0cad
13 changed files with 74 additions and 4 deletions

View file

@ -109,6 +109,12 @@ func WithCompressObjects(comp bool) Option {
}
}
func WithCompressionLevel(level compression.Level) Option {
return func(c *cfg) {
c.compression.Level = level
}
}
// WithCompressibilityEstimate returns an option to use
// normilized compressibility estimate to decide compress
// data or not.