@cryptotaxi247 / kubo / commits / 1d5e46ac9

fix(config): skip nulls in ResourceMgr

Marcin Rataj committed Nov 11, 2022 at 01:15 UTC 1d5e46ac97dbd9862818b191517a4dc04186a26e
1 file changed +2 -2
config/swarm.go
+2 -2
@@ -144,8 +144,8 @@ type ResourceMgr struct {
144 Enabled Flag `json:",omitempty"`
145 Limits *rcmgr.LimitConfig `json:",omitempty"`
146
147 - MaxMemory OptionalString `json:",omitempty"`
148 - MaxFileDescriptors OptionalInteger `json:",omitempty"`
147 + MaxMemory *OptionalString `json:",omitempty"`
148 + MaxFileDescriptors *OptionalInteger `json:",omitempty"`
149
150 // A list of multiaddrs that can bypass normal system limits (but are still
151 // limited by the allowlist scope). Convenience config around