Skip to content

Commit

Permalink
fix vet errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinburkesegment committed Mar 6, 2024
1 parent 9a736bf commit c30acce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/nsq-to-http/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func main() {
}()
}

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

<-sigchan
Expand Down
2 changes: 1 addition & 1 deletion cmd/nsq-to-nsq/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func main() {
go forward(producer, messages, done)
}

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

Expand Down

0 comments on commit c30acce

Please sign in to comment.