forked from TrueCloudLab/frostfs-node
[#1745] neofs-node: Remove memcache_capacity
from the configuration
It is unused since ddaed283e9
.
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
bda084f331
commit
177e8e01b1
11 changed files with 5 additions and 45 deletions
|
@ -11,9 +11,6 @@ type Config config.Config
|
|||
|
||||
// config defaults
|
||||
const (
|
||||
// MemSizeDefault is a default memory size.
|
||||
MemSizeDefault = 1 << 30
|
||||
|
||||
// SmallSizeDefault is a default size of small objects.
|
||||
SmallSizeDefault = 32 << 10
|
||||
|
||||
|
@ -55,22 +52,6 @@ func (x *Config) Path() string {
|
|||
return p
|
||||
}
|
||||
|
||||
// MemSize returns the value of "memcache_capacity" config parameter.
|
||||
//
|
||||
// Returns MemSizeDefault if the value is not a positive number.
|
||||
func (x *Config) MemSize() uint64 {
|
||||
s := config.SizeInBytesSafe(
|
||||
(*config.Config)(x),
|
||||
"memcache_capacity",
|
||||
)
|
||||
|
||||
if s > 0 {
|
||||
return s
|
||||
}
|
||||
|
||||
return MemSizeDefault
|
||||
}
|
||||
|
||||
// SmallObjectSize returns the value of "small_object_size" config parameter.
|
||||
//
|
||||
// Returns SmallSizeDefault if the value is not a positive number.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue