Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
arkrz committed Mar 15, 2021
1 parent 90f2b0f commit b6f6def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ping/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func Ping(nodes types.Nodes, duration time.Duration) {
go func(ch chan<- [2]int, index int) {
pinger, err := gop.NewPinger(nodes[index].Addr)
if err != nil {
panic(err)
return // parse address error
}

pinger.Count = 4
Expand Down

0 comments on commit b6f6def

Please sign in to comment.