diff --git a/cmd/neofs-node/config/engine/shard/blobstor/blobovnicza/config.go b/cmd/neofs-node/config/engine/shard/blobstor/blobovnicza/config.go index 51ffa44d..834afac2 100644 --- a/cmd/neofs-node/config/engine/shard/blobstor/blobovnicza/config.go +++ b/cmd/neofs-node/config/engine/shard/blobstor/blobovnicza/config.go @@ -32,7 +32,7 @@ func From(c *config.Config) *Config { // // Returns SizeDefault if value is not a positive number. func (x *Config) Size() uint64 { - s := config.UintSafe( + s := config.SizeInBytesSafe( (*config.Config)(x), "size", ) diff --git a/cmd/neofs-node/config/engine/shard/blobstor/config.go b/cmd/neofs-node/config/engine/shard/blobstor/config.go index e9b77768..86921952 100644 --- a/cmd/neofs-node/config/engine/shard/blobstor/config.go +++ b/cmd/neofs-node/config/engine/shard/blobstor/config.go @@ -92,7 +92,7 @@ func (x *Config) Compress() bool { // // Returns SmallSizeLimitDefault if value is not a positive number. func (x *Config) SmallSizeLimit() uint64 { - l := config.UintSafe( + l := config.SizeInBytesSafe( (*config.Config)(x), "small_size_limit", ) diff --git a/cmd/neofs-node/config/engine/shard/writecache/config.go b/cmd/neofs-node/config/engine/shard/writecache/config.go index 00ff447c..ec65a5a6 100644 --- a/cmd/neofs-node/config/engine/shard/writecache/config.go +++ b/cmd/neofs-node/config/engine/shard/writecache/config.go @@ -51,7 +51,7 @@ func (x *Config) Path() string { // // Returns MemSizeDefault if value is not a positive number. func (x *Config) MemSize() uint64 { - s := config.UintSafe( + s := config.SizeInBytesSafe( (*config.Config)(x), "mem_size", ) @@ -67,7 +67,7 @@ func (x *Config) MemSize() uint64 { // // Returns SmallSizeDefault if value is not a positive number. func (x *Config) SmallObjectSize() uint64 { - s := config.UintSafe( + s := config.SizeInBytesSafe( (*config.Config)(x), "small_size", ) @@ -83,7 +83,7 @@ func (x *Config) SmallObjectSize() uint64 { // // Returns MaxSizeDefault if value is not a positive number. func (x *Config) MaxObjectSize() uint64 { - s := config.UintSafe( + s := config.SizeInBytesSafe( (*config.Config)(x), "max_size", ) @@ -115,7 +115,7 @@ func (x *Config) WorkersNumber() int { // // Returns SizeLimitDefault if value is not a positive number. func (x *Config) SizeLimit() uint64 { - c := config.UintSafe( + c := config.SizeInBytesSafe( (*config.Config)(x), "size_limit", )