[#1462] writecache: Rename `flushWorkersCount`

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
remotes/fyrchik/changelog
Evgenii Stratonikov 2022-05-31 14:15:31 +03:00 committed by LeL
parent 0148209168
commit 54d4503701
2 changed files with 3 additions and 3 deletions

View File

@ -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
)

View File

@ -96,7 +96,7 @@ func New(opts ...Option) Cache {
maxMemSize: maxInMemorySizeBytes,
maxObjectSize: maxObjectSize,
smallObjectSize: smallObjectSize,
workersCount: flushWorkersCount,
workersCount: defaultFlushWorkersCount,
maxCacheSize: maxCacheSizeBytes,
},
}