Skip to content

Commit

Permalink
update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ciisaichan authored May 18, 2020
1 parent ee45a65 commit e3aa03c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ var (
ddName string = "DD"
interval float64 = 500
version string = "1.0.0"
cmdline bool = false
ws *websocket.Conn
)

Expand Down Expand Up @@ -138,7 +137,6 @@ func main() {
}
}

cmdline = true
err = s.Run()
if err != nil {
fmt.Println(err)
Expand All @@ -157,9 +155,7 @@ func Processor(payload []byte) (string, string, error) {
fmt.Println("task", key, "error:", err)
return "", key, err
}
if cmdline {
fmt.Println("task", key, "handled, url:", json.Get("data.url").Str)
}
//fmt.Println("task", key, "handled, url:", json.Get("data.url").Str)
return data, key, nil
}

Expand Down

0 comments on commit e3aa03c

Please sign in to comment.