[#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:
parent
2d1232ce6d
commit
98308d0cad
13 changed files with 74 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue