We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
These contexts are not handled correctly because of os.Exit():
go-inter/cmd/inter-banking/main.go
Lines 60 to 61 in fcc3e16
go-inter/cmd/inter-token/main.go
Lines 52 to 53 in fcc3e16
As per docs:
... The program terminates immediately; deferred functions are not run.
Better to wrap the flow inside a run that returns an error:
func main() { err := run() if err != nil { fmt.Println(err) os.Exit(1) } } func run() error { ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt) defer cancel() ... return nil }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
These contexts are not handled correctly because of os.Exit():
go-inter/cmd/inter-banking/main.go
Lines 60 to 61 in fcc3e16
go-inter/cmd/inter-token/main.go
Lines 52 to 53 in fcc3e16
As per docs:
Better to wrap the flow inside a run that returns an error:
The text was updated successfully, but these errors were encountered: