[#230] shard: Add test for getting SplitInfo

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-12-03 12:50:20 +03:00
parent bf9e938a3b
commit 7c97bd1360
2 changed files with 59 additions and 1 deletions

View file

@ -108,7 +108,7 @@ func WithWriteCache(use bool) Option {
}
}
// hasWriteCache returns bool if write cache exists on shars.
// hasWriteCache returns bool if write cache exists on shards.
func (s Shard) hasWriteCache() bool {
return s.cfg.useWriteCache
}