remove the name from the serviceScope

This commit is contained in:
Marten Seemann 2022-06-03 12:09:04 +02:00
parent 50387915ba
commit bc7388e9f6

View File

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