mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-03-23 07:40:40 +08:00
Use the same standard limits for the allowlistedSystem and allowlistedTransient
This commit is contained in:
parent
84ca9d337a
commit
539b1476fc
5
rcmgr.go
5
rcmgr.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user