Skip to content

Commit

Permalink
fix: resolved the goreleaser build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rizkybiz committed Oct 28, 2020
1 parent 0f57b4b commit be39d2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .goreleaser.yml
Expand Up @@ -4,7 +4,6 @@ before:
- go mod tidy
builds:
-
main: main.go
env:
- CGO_ENABLED=0
goos:
Expand Down
6 changes: 3 additions & 3 deletions main.go
Expand Up @@ -6,6 +6,7 @@
package main

import (
"context"
"flag"
"fmt"
"log"
Expand All @@ -16,7 +17,6 @@ import (
"time"

"github.com/circonus-labs/gen-statsd/internal/release"
"golang.org/x/net/context"
)

// config vars, to be manipulated via command line flags
Expand Down Expand Up @@ -63,8 +63,8 @@ func main() {
ctx, cancel := context.WithCancel(context.Background())

sigs := make(chan os.Signal, 1)
signalNotifySetup(sigs)
go handleSignals(cancel, sigs)
SignalNotifySetup(sigs)
go HandleSignals(cancel, sigs)

for i := 0; i < agents; i++ {
wg.Add(1)
Expand Down

0 comments on commit be39d2a

Please sign in to comment.