From 76b7e49ed7c90fb0968e24825109830d3b2247ca Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 3 Jun 2022 11:22:52 +0200 Subject: [PATCH] make service and protocol scope names distinguishable --- rcmgr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rcmgr.go b/rcmgr.go index bebae9b..0cd54c6 100644 --- a/rcmgr.go +++ b/rcmgr.go @@ -450,7 +450,7 @@ func (s *serviceScope) getPeerScope(p peer.ID) *resourceScope { s.peers = make(map[peer.ID]*resourceScope) } - ps = newResourceScope(l, nil, fmt.Sprintf("%s.peer:%s", s.name, p), s.rcmgr.trace, s.rcmgr.metrics) + ps = newResourceScope(l, nil, fmt.Sprintf("service:%s.peer:%s", s.name, p), s.rcmgr.trace, s.rcmgr.metrics) s.peers[p] = ps ps.IncRef() @@ -477,7 +477,7 @@ func (s *protocolScope) getPeerScope(p peer.ID) *resourceScope { s.peers = make(map[peer.ID]*resourceScope) } - ps = newResourceScope(l, nil, fmt.Sprintf("%s.peer:%s", s.name, p), s.rcmgr.trace, s.rcmgr.metrics) + ps = newResourceScope(l, nil, fmt.Sprintf("protocol:%s.peer:%s", s.name, p), s.rcmgr.trace, s.rcmgr.metrics) s.peers[p] = ps ps.IncRef()