From f29640e0c8cc2bbad046145adcdeb77a5ff9acb5 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Fri, 11 Nov 2022 01:15:30 +0100 Subject: [PATCH] fix(config): skip nulls in ResourceMgr --- config/swarm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/swarm.go b/config/swarm.go index 631192827..b6cc9aa9a 100644 --- a/config/swarm.go +++ b/config/swarm.go @@ -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