From 48b1688e846607dbd9bf0c08331bc9a32d0c447d Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Fri, 25 Oct 2024 12:23:54 +0800 Subject: [PATCH] p2p/simulations: fix staticcheck warning SA1029 --- p2p/simulations/http.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/p2p/simulations/http.go b/p2p/simulations/http.go index 7e3aa5c96e1a..84f3af61cd0c 100644 --- a/p2p/simulations/http.go +++ b/p2p/simulations/http.go @@ -721,6 +721,7 @@ func (s *Server) wrapHandler(handler http.HandlerFunc) httprouter.Handle { http.NotFound(w, req) return } + //lint:ignore SA1029 This file will be removed later, reference: #30250 ctx = context.WithValue(ctx, "node", node) } @@ -735,6 +736,7 @@ func (s *Server) wrapHandler(handler http.HandlerFunc) httprouter.Handle { http.NotFound(w, req) return } + //lint:ignore SA1029 This file will be removed later, reference: #30250 ctx = context.WithValue(ctx, "peer", peer) }