[#859] config: rename small_size_limit to small_object_size

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-10-18 17:05:42 +03:00 committed by Alex Vanin
parent cbf8ca12b0
commit 0759d8d0e5
5 changed files with 14 additions and 14 deletions

View file

@ -88,13 +88,13 @@ func (x *Config) Compress() bool {
)
}
// SmallSizeLimit returns value of "small_size_limit" config parameter.
// SmallSizeLimit returns value of "small_object_size" config parameter.
//
// Returns SmallSizeLimitDefault if value is not a positive number.
func (x *Config) SmallSizeLimit() uint64 {
l := config.SizeInBytesSafe(
(*config.Config)(x),
"small_size_limit",
"small_object_size",
)
if l > 0 {