Use the same standard limits for the allowlistedSystem and allowlistedTransient

This commit is contained in:
Marco Munizaga 2022-06-14 11:48:56 -07:00
parent 84ca9d337a
commit 539b1476fc

View File

@ -149,6 +149,11 @@ func NewResourceManager(limits Limiter, opts ...Option) (network.ResourceManager
r.transient = newTransientScope(limits.GetTransientLimits(), r)
r.transient.IncRef()
r.allowlistedSystem = newSystemScope(limits.GetSystemLimits(), r)
r.allowlistedSystem.IncRef()
r.allowlistedTransient = newTransientScope(limits.GetTransientLimits(), r)
r.allowlistedTransient.IncRef()
r.cancelCtx, r.cancel = context.WithCancel(context.Background())
r.wg.Add(1)