Skip to content

Commit

Permalink
Revert "Fix: TestFetchServerList (#167)"
Browse files Browse the repository at this point in the history
This reverts commit fc272f7.
  • Loading branch information
r3inbowari authored Dec 25, 2023
1 parent fc272f7 commit 0a5e83d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions speedtest/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,6 @@ func (s *Server) HTTPPing(
failTimes++
continue
}
_, _ = io.Copy(io.Discard, resp.Body)
_ = resp.Body.Close()
latencies = append(latencies, endTime.Nanoseconds()/2)
dbg.Printf("2RTT: %s\n", endTime)
if callback != nil {
Expand Down

0 comments on commit 0a5e83d

Please sign in to comment.