Skip to content

Commit

Permalink
p2p/simulations: fix staticcheck warning SA1029
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan committed Oct 25, 2024
1 parent 2844dbc commit 48b1688
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions p2p/simulations/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

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

Expand Down

0 comments on commit 48b1688

Please sign in to comment.