-
Notifications
You must be signed in to change notification settings - Fork 29
feat: rm interceptors and use context #252
New issue
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
Conversation
gitferry
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
eotsmanager/service/server.go
Outdated
| // Wait for shutdown signal from either a graceful server stop or from | ||
| // the interrupt handler. | ||
| <-s.interceptor.ShutdownChannel() | ||
| // <-s.interceptor.ShutdownChannel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover
| // the interrupt handler. | ||
| <-s.interceptor.ShutdownChannel() | ||
| // <-s.interceptor.ShutdownChannel() | ||
| <-ctx.Done() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover
RafilxTenfen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR removes the usage of
signal.Interceptorand uses Go's idiomaticcontextto handle cancellations. This enables us to run e2e tests in parallel (almost 4x faster).Time in GH action
9m 58svs3m 24sCloses #219