Skip to content

Commit

Permalink
fix: Packet Loss Sample Code Error (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed Jun 27, 2024
1 parent 8e02144 commit 320467f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,15 @@ import (
"fmt"
"github.com/showwin/speedtest-go/speedtest"
"github.com/showwin/speedtest-go/speedtest/transport"
"log"
)

func checkError(err error) {
if err != nil {
log.Fatal(err)
}
}

// Note: The current packet loss analyzer does not support udp over http.
// This means we cannot get packet loss through a proxy.
func main() {
Expand Down

0 comments on commit 320467f

Please sign in to comment.