[#859] config: rename writecache.size_limit to writecache.capacity

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-10-18 17:29:30 +03:00 committed by Alex Vanin
parent c015b04ed5
commit e7fd980951
4 changed files with 8 additions and 8 deletions

View file

@ -111,13 +111,13 @@ func (x *Config) WorkersNumber() int {
return WorkersNumberDefault
}
// SizeLimit returns value of "size_limit" config parameter.
// SizeLimit returns value of "capacity" config parameter.
//
// Returns SizeLimitDefault if value is not a positive number.
func (x *Config) SizeLimit() uint64 {
c := config.SizeInBytesSafe(
(*config.Config)(x),
"size_limit",
"capacity",
)
if c > 0 {