|
|
|
@ -496,7 +496,7 @@ func main() { |
|
|
|
// <-ctx.Done() if your application should wait for other services |
|
|
|
// <-ctx.Done() if your application should wait for other services |
|
|
|
// to finalize based on context cancellation. |
|
|
|
// to finalize based on context cancellation. |
|
|
|
log.Println("shutting down") |
|
|
|
log.Println("shutting down") |
|
|
|
os.Exit(0) |
|
|
|
defer os.Exit(0) |
|
|
|
} |
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|