mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-01-26 12:20:20 +08:00
remove the name from the serviceScope
This commit is contained in:
parent
50387915ba
commit
bc7388e9f6
2
rcmgr.go
2
rcmgr.go
@ -58,7 +58,6 @@ var _ network.ResourceScope = (*transientScope)(nil)
|
||||
type serviceScope struct {
|
||||
*resourceScope
|
||||
|
||||
name string
|
||||
rcmgr *resourceManager
|
||||
|
||||
peers map[peer.ID]*resourceScope
|
||||
@ -383,7 +382,6 @@ func newServiceScope(name string, limit Limit, rcmgr *resourceManager) *serviceS
|
||||
resourceScope: newResourceScope(limit,
|
||||
[]*resourceScope{rcmgr.system.resourceScope},
|
||||
fmt.Sprintf("service:%s", name), rcmgr.trace, rcmgr.metrics),
|
||||
name: name,
|
||||
rcmgr: rcmgr,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user