File tree Expand file tree Collapse file tree
cmd/neofs-node/config/engine/shard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func From(c *config.Config) *Config {
3232//
3333// Returns SizeDefault if value is not a positive number.
3434func (x * Config ) Size () uint64 {
35- s := config .UintSafe (
35+ s := config .SizeInBytesSafe (
3636 (* config .Config )(x ),
3737 "size" ,
3838 )
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ func (x *Config) Compress() bool {
9292//
9393// Returns SmallSizeLimitDefault if value is not a positive number.
9494func (x * Config ) SmallSizeLimit () uint64 {
95- l := config .UintSafe (
95+ l := config .SizeInBytesSafe (
9696 (* config .Config )(x ),
9797 "small_size_limit" ,
9898 )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ func (x *Config) Path() string {
5151//
5252// Returns MemSizeDefault if value is not a positive number.
5353func (x * Config ) MemSize () uint64 {
54- s := config .UintSafe (
54+ s := config .SizeInBytesSafe (
5555 (* config .Config )(x ),
5656 "mem_size" ,
5757 )
@@ -67,7 +67,7 @@ func (x *Config) MemSize() uint64 {
6767//
6868// Returns SmallSizeDefault if value is not a positive number.
6969func (x * Config ) SmallObjectSize () uint64 {
70- s := config .UintSafe (
70+ s := config .SizeInBytesSafe (
7171 (* config .Config )(x ),
7272 "small_size" ,
7373 )
@@ -83,7 +83,7 @@ func (x *Config) SmallObjectSize() uint64 {
8383//
8484// Returns MaxSizeDefault if value is not a positive number.
8585func (x * Config ) MaxObjectSize () uint64 {
86- s := config .UintSafe (
86+ s := config .SizeInBytesSafe (
8787 (* config .Config )(x ),
8888 "max_size" ,
8989 )
@@ -115,7 +115,7 @@ func (x *Config) WorkersNumber() int {
115115//
116116// Returns SizeLimitDefault if value is not a positive number.
117117func (x * Config ) SizeLimit () uint64 {
118- c := config .UintSafe (
118+ c := config .SizeInBytesSafe (
119119 (* config .Config )(x ),
120120 "size_limit" ,
121121 )
You can’t perform that action at this time.
0 commit comments