[#859] config: rename max_size to max_object_size

`_size` suffix by itself makes me think about restrictions on database
size.

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

View file

@ -79,13 +79,13 @@ func (x *Config) SmallObjectSize() uint64 {
return SmallSizeDefault
}
// MaxObjectSize returns value of "max_size" config parameter.
// MaxObjectSize returns value of "max_object_size" config parameter.
//
// Returns MaxSizeDefault if value is not a positive number.
func (x *Config) MaxObjectSize() uint64 {
s := config.SizeInBytesSafe(
(*config.Config)(x),
"max_size",
"max_object_size",
)
if s > 0 {