[#1462] writecache: Rename `flushWorkersCount`
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>remotes/fyrchik/changelog
parent
0148209168
commit
54d4503701
|
@ -20,8 +20,8 @@ const (
|
|||
// to the main storage. It is used to reduce contention between cache put
|
||||
// and cache persist.
|
||||
flushBatchSize = 512
|
||||
// flushWorkersCount is number of workers for putting objects in main storage.
|
||||
flushWorkersCount = 20
|
||||
// defaultFlushWorkersCount is number of workers for putting objects in main storage.
|
||||
defaultFlushWorkersCount = 20
|
||||
// defaultFlushInterval is default time interval between successive flushes.
|
||||
defaultFlushInterval = time.Second
|
||||
)
|
||||
|
|
|
@ -96,7 +96,7 @@ func New(opts ...Option) Cache {
|
|||
maxMemSize: maxInMemorySizeBytes,
|
||||
maxObjectSize: maxObjectSize,
|
||||
smallObjectSize: smallObjectSize,
|
||||
workersCount: flushWorkersCount,
|
||||
workersCount: defaultFlushWorkersCount,
|
||||
maxCacheSize: maxCacheSizeBytes,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue