@cryptotaxi247 / kubo / commits / f29640e0c

fix(config): skip nulls in ResourceMgr

Marcin Rataj committed Nov 11, 2022 at 01:15 UTC f29640e0c8cc2bbad046145adcdeb77a5ff9acb5
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