-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Switch GrandPa to std futures (replaces #3909) #4612
Changes from 1 commit
b21d51c
a25be8e
513704d
6007c2b
46f3728
6f6849a
7c4f79b
c1dd9e5
6737632
46a6822
f05c301
53fb151
6fdc0b8
a52f255
14d8afb
b1264db
5afd086
ba62dd5
daf41a3
828af5e
c7d2b24
e1a89d7
7fcf87b
65724be
8589985
6053e88
a6097b3
6226ed4
d6b89c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1342,9 +1342,7 @@ fn voter_persists_its_votes() { | |
| // by `Sink::poll_complete` to make sure items are being flushed. Given that | ||
| // we send in a loop including a delay until items are received, this can be | ||
| // ignored for the sake of reduced complexity. | ||
| Pin::new(&mut *round_tx.lock()) | ||
| .start_send(finality_grandpa::Message::Prevote(prevote)) | ||
| .unwrap(); | ||
| Pin::new(&mut *round_tx.lock()).start_send(finality_grandpa::Message::Prevote(prevote)).unwrap(); | ||
|
Contributor
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. One should first call (I don't think this was introduced through this pull request, but the pull request enables the easy fix via
Contributor
Author
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. We actually can't use |
||
| } else if state.compare_and_swap(1, 2, Ordering::SeqCst) == 1 { | ||
| // the next message we receive should be our own prevote | ||
| let prevote = match signed.message { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.