Skip to content

Commit

Permalink
revert context
Browse files Browse the repository at this point in the history
  • Loading branch information
r3inbowari committed Jul 13, 2024
1 parent dedf56c commit 9e78a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speedtest/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (s *Speedtest) FetchServerListContext(ctx context.Context) (Servers, error)
} else if s.config.PingMode == ICMP {
latency, errPing = gs.ICMPPing(pCtx, 4*time.Second, 1, time.Millisecond, nil)
} else {
latency, errPing = gs.HTTPPing(context.Background(), 1, time.Millisecond, nil)
latency, errPing = gs.HTTPPing(pCtx, 1, time.Millisecond, nil)
}
if errPing != nil || len(latency) < 1 {
gs.Latency = PingTimeout
Expand Down

0 comments on commit 9e78a17

Please sign in to comment.