forked from TrueCloudLab/frostfs-node
[#1745] writecache: Rename constants for default values
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
177e8e01b1
commit
e9c6ee2623
1 changed files with 6 additions and 6 deletions
|
@ -66,9 +66,9 @@ type objectInfo struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
maxObjectSize = 64 * 1024 * 1024 // 64 MiB
|
defaultMaxObjectSize = 64 * 1024 * 1024 // 64 MiB
|
||||||
smallObjectSize = 32 * 1024 // 32 KiB
|
defaultSmallObjectSize = 32 * 1024 // 32 KiB
|
||||||
maxCacheSizeBytes = 1 << 30 // 1 GiB
|
defaultMaxCacheSize = 1 << 30 // 1 GiB
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -84,10 +84,10 @@ func New(opts ...Option) Cache {
|
||||||
compressFlags: make(map[string]struct{}),
|
compressFlags: make(map[string]struct{}),
|
||||||
options: options{
|
options: options{
|
||||||
log: zap.NewNop(),
|
log: zap.NewNop(),
|
||||||
maxObjectSize: maxObjectSize,
|
maxObjectSize: defaultMaxObjectSize,
|
||||||
smallObjectSize: smallObjectSize,
|
smallObjectSize: defaultSmallObjectSize,
|
||||||
workersCount: defaultFlushWorkersCount,
|
workersCount: defaultFlushWorkersCount,
|
||||||
maxCacheSize: maxCacheSizeBytes,
|
maxCacheSize: defaultMaxCacheSize,
|
||||||
maxBatchSize: bbolt.DefaultMaxBatchSize,
|
maxBatchSize: bbolt.DefaultMaxBatchSize,
|
||||||
maxBatchDelay: bbolt.DefaultMaxBatchDelay,
|
maxBatchDelay: bbolt.DefaultMaxBatchDelay,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue