Browse Source

Update README.md

pull/603/head
Kenneth Tan Xin You 5 years ago committed by GitHub
parent
commit
9fc5eb2f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md

2
README.md

@ -455,6 +455,7 @@ import ( @@ -455,6 +455,7 @@ import (
)
func main() {
defer os.Exit(0)
var wait time.Duration
flag.DurationVar(&wait, "graceful-timeout", time.Second * 15, "the duration for which the server gracefully wait for existing connections to finish - e.g. 15s or 1m")
flag.Parse()
@ -496,7 +497,6 @@ func main() { @@ -496,7 +497,6 @@ func main() {
// <-ctx.Done() if your application should wait for other services
// to finalize based on context cancellation.
log.Println("shutting down")
defer os.Exit(0)
}
```

Loading…
Cancel
Save