Skip to content

Commit

Permalink
Merge pull request #153 from dseevr/goexit
Browse files Browse the repository at this point in the history
main.go: use runtime.Goexit() instead of sleeping in an infinite loop
  • Loading branch information
dseevr authored Jun 28, 2017
2 parents 35c5418 + fd72017 commit 3725d6a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"flag"
"fmt"
"os"
"runtime"
"syscall"
"time"

"github.com/blang/semver"
"github.com/contiv/auth_proxy/auth"
Expand Down Expand Up @@ -247,6 +247,5 @@ func main() {

go p.Serve()

for range time.Tick(time.Second) {
}
runtime.Goexit()
}

0 comments on commit 3725d6a

Please sign in to comment.