mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 18:37:26 +08:00
mdbx: lz4 set fast level
This commit is contained in:
parent
450d96ec9f
commit
4db2a4a85a
@ -22,6 +22,7 @@ func compressValue(value []byte) ([]byte, error) {
|
||||
}
|
||||
var b bytes.Buffer
|
||||
w := lz4.NewWriter(&b)
|
||||
w.Apply(lz4.CompressionLevelOption(lz4.Fast))
|
||||
|
||||
if _, err := w.Write(value); err != nil {
|
||||
return nil, err
|
||||
|
||||
Loading…
Reference in New Issue
Block a user