-
Notifications
You must be signed in to change notification settings - Fork 1k
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
futures can react to shutdown #390
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,6 +146,7 @@ func (r *Raft) takeSnapshot() (string, error) { | |
// We have to use the future here to safely get this information since | ||
// it is owned by the main thread. | ||
configReq := &configurationsFuture{} | ||
configReq.ShutdownCh = r.shutdownCh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It may be nice to document when |
||
configReq.init() | ||
select { | ||
case r.configurationsCh <- configReq: | ||
|
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.
very nit picky - can this field be private like the rest?