fix(config): skip nulls in ResourceMgr

This commit is contained in:
Marcin Rataj 2022-11-11 01:15:30 +01:00
parent dfa631e841
commit f29640e0c8

View File

@ -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