From bc7388e9f6f25bdaeb3145071902cd4a66d40142 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 3 Jun 2022 12:09:04 +0200 Subject: [PATCH] remove the name from the serviceScope --- rcmgr.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/rcmgr.go b/rcmgr.go index bebae9b..e2ec7a3 100644 --- a/rcmgr.go +++ b/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, } }