p2p/simulations: fix staticcheck warning SA1029

This commit is contained in:
Daniel Liu 2024-10-25 12:23:54 +08:00
parent 2844dbc5a9
commit 48b1688e84

View file

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