Skip to content

Commit 1d5e46a

Browse files
committed
fix(config): skip nulls in ResourceMgr
1 parent 2479cc1 commit 1d5e46a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/swarm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ type ResourceMgr struct {
144144
Enabled Flag `json:",omitempty"`
145145
Limits *rcmgr.LimitConfig `json:",omitempty"`
146146

147-
MaxMemory OptionalString `json:",omitempty"`
148-
MaxFileDescriptors OptionalInteger `json:",omitempty"`
147+
MaxMemory *OptionalString `json:",omitempty"`
148+
MaxFileDescriptors *OptionalInteger `json:",omitempty"`
149149

150150
// A list of multiaddrs that can bypass normal system limits (but are still
151151
// limited by the allowlist scope). Convenience config around

0 commit comments

Comments
 (0)