[#1462] writecache: Rename flushWorkersCount
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
0148209168
commit
54d4503701
2 changed files with 3 additions and 3 deletions
|
@ -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 a new issue