From 7f48033d0b7e00c56224e1e07d9a82fcc8ab48cc Mon Sep 17 00:00:00 2001 From: "Chris S. Kim" Date: Fri, 23 Sep 2022 18:44:26 -0400 Subject: [PATCH] Fix nil pointer --- agent/rpc/peering/service.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agent/rpc/peering/service.go b/agent/rpc/peering/service.go index 0c18a5784..6f753c485 100644 --- a/agent/rpc/peering/service.go +++ b/agent/rpc/peering/service.go @@ -632,8 +632,10 @@ func (s *Server) PeeringList(ctx context.Context, req *pbpeering.PeeringListRequ func (s *Server) reconcilePeering(peering *pbpeering.Peering) *pbpeering.Peering { streamState, found := s.Tracker.StreamStatus(peering.ID) if !found { + // TODO(peering): this may be noise on non-leaders s.Logger.Warn("did not find peer in stream tracker; cannot populate imported and"+ " exported services count or reconcile peering state", "peerID", peering.ID) + peering.StreamStatus = &pbpeering.StreamStatus{} return peering } else { cp := copyPeering(peering)