Skip to content

Commit

Permalink
fix go vet error
Browse files Browse the repository at this point in the history
  • Loading branch information
Qing Ye committed Sep 21, 2021
1 parent c069b6c commit d9f6f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (c *promCmd) run() error {
q.Add("query", c.query)
req.URL.RawQuery = q.Encode()

quit := make(chan os.Signal)
quit := make(chan os.Signal, 1)
signal.Notify(quit, syscall.SIGTERM, syscall.SIGINT)

ticker := time.NewTicker(time.Second * time.Duration(options.interval))
Expand Down

0 comments on commit d9f6f41

Please sign in to comment.