-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: rm interceptors and use context #252
Conversation
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
finality-provider/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() | ||
<-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
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.Interceptor
and uses Go's idiomaticcontext
to handle cancellations. This enables us to run e2e tests in parallel (almost 4x faster).Time in GH action
9m 58s
vs3m 24s
Closes #219