Skip to content

Commit

Permalink
fix(config): skip nulls in ResourceMgr
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Nov 14, 2022
1 parent 2479cc1 commit 1d5e46a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ type ResourceMgr struct {
Enabled Flag `json:",omitempty"`
Limits *rcmgr.LimitConfig `json:",omitempty"`

MaxMemory OptionalString `json:",omitempty"`
MaxFileDescriptors OptionalInteger `json:",omitempty"`
MaxMemory *OptionalString `json:",omitempty"`
MaxFileDescriptors *OptionalInteger `json:",omitempty"`

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

0 comments on commit 1d5e46a

Please sign in to comment.