Skip to content

Commit

Permalink
remove debug stuff from cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
clinta committed Mar 30, 2018
1 parent 347c2fa commit d2080b6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cmd/ping/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ import (
"fmt"
"os"
"os/signal"
"runtime/pprof"
"sync"
"sync/atomic"
"time"

"github.com/TrilliumIT/go-multiping/ping"

"github.com/pkg/profile"
)

var usage = `
Expand All @@ -38,7 +35,6 @@ Examples:
`

func main() {
defer profile.Start().Stop()
timeout := flag.Duration("t", time.Second, "")
interval := flag.Duration("i", time.Second, "")
count := flag.Int("c", 0, "")
Expand Down Expand Up @@ -94,11 +90,6 @@ func main() {
go func() {
<-c
cancel()
go func() {
time.Sleep(10 * time.Second)
err := pprof.Lookup("goroutine").WriteTo(os.Stdout, 1)
panic(err)
}()
for _, cl := range closes {
if err := cl(); err != nil {
panic(err)
Expand Down

0 comments on commit d2080b6

Please sign in to comment.