mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-04-01 07:00:51 +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 {
|
type serviceScope struct {
|
||||||
*resourceScope
|
*resourceScope
|
||||||
|
|
||||||
name string
|
|
||||||
rcmgr *resourceManager
|
rcmgr *resourceManager
|
||||||
|
|
||||||
peers map[peer.ID]*resourceScope
|
peers map[peer.ID]*resourceScope
|
||||||
@ -383,7 +382,6 @@ func newServiceScope(name string, limit Limit, rcmgr *resourceManager) *serviceS
|
|||||||
resourceScope: newResourceScope(limit,
|
resourceScope: newResourceScope(limit,
|
||||||
[]*resourceScope{rcmgr.system.resourceScope},
|
[]*resourceScope{rcmgr.system.resourceScope},
|
||||||
fmt.Sprintf("service:%s", name), rcmgr.trace, rcmgr.metrics),
|
fmt.Sprintf("service:%s", name), rcmgr.trace, rcmgr.metrics),
|
||||||
name: name,
|
|
||||||
rcmgr: rcmgr,
|
rcmgr: rcmgr,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user