Skip to content

Commit

Permalink
fix shadowed error
Browse files Browse the repository at this point in the history
  • Loading branch information
minhd-vu committed Jun 27, 2023
1 parent 26496e1 commit 9724cd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/p2p/sensor/sensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ transactions. If no nodes.json file exists, run echo "{}" >> nodes.json to get s

if inputSensorParams.ShouldRunPprof {
go func() {
if err := http.ListenAndServe(fmt.Sprintf("localhost:%v", inputSensorParams.PprofPort), nil); err != nil {
log.Error().Err(err).Msg("Failed to start pprof")
if pprofErr := http.ListenAndServe(fmt.Sprintf("localhost:%v", inputSensorParams.PprofPort), nil); pprofErr != nil {
log.Error().Err(pprofErr).Msg("Failed to start pprof")
}
}()
}
Expand Down

0 comments on commit 9724cd3

Please sign in to comment.