Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Jun 7, 2021
1 parent 6de87b9 commit 593f466
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/ndt7-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
// but may be set to false on the command line to run only upload or only
// download.
//
// The `-cpuprofile` flag defines the file where to write a CPU profile
// The `-profile` flag defines the file where to write a CPU profile
// that later you can pass to `go tool pprof`. See https://blog.golang.org/pprof.
//
// Additionally, passing any unrecognized flag, such as `-help`, will
Expand Down Expand Up @@ -117,7 +117,7 @@ const (

var (
flagProfile = flag.String("profile", "",
"file where to store cpuprofile (see https://blog.golang.org/pprof)")
"file where to store pprof profile (see https://blog.golang.org/pprof)")

flagScheme = flagx.Enum{
Options: []string{"wss", "ws"},
Expand Down Expand Up @@ -282,6 +282,7 @@ func main() {
flag.Parse()

if *flagProfile != "" {
log.Printf("warning: using -profile will obviously reduce the performance")
fp, err := os.Create(*flagProfile)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 593f466

Please sign in to comment.