mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 04:41:04 +00:00
squash some warnings
This commit is contained in:
@@ -158,7 +158,7 @@ impl<C, D, V, S> Accumulator<C, D, V, S>
|
|||||||
let (sender, signature) = (message.sender, message.signature);
|
let (sender, signature) = (message.sender, message.signature);
|
||||||
|
|
||||||
match message.message {
|
match message.message {
|
||||||
Message::Propose(_, p) => self.import_proposal(p, sender, signature),
|
Message::Propose(_, p) => self.import_proposal(p, sender),
|
||||||
Message::Prepare(_, d) => self.import_prepare(d, sender, signature),
|
Message::Prepare(_, d) => self.import_prepare(d, sender, signature),
|
||||||
Message::Commit(_, d) => self.import_commit(d, sender, signature),
|
Message::Commit(_, d) => self.import_commit(d, sender, signature),
|
||||||
Message::AdvanceRound(_) => self.import_advance_round(sender),
|
Message::AdvanceRound(_) => self.import_advance_round(sender),
|
||||||
@@ -169,7 +169,6 @@ impl<C, D, V, S> Accumulator<C, D, V, S>
|
|||||||
&mut self,
|
&mut self,
|
||||||
proposal: C,
|
proposal: C,
|
||||||
sender: V,
|
sender: V,
|
||||||
signature: S,
|
|
||||||
) {
|
) {
|
||||||
if sender != self.round_proposer || self.proposal.is_some() { return }
|
if sender != self.round_proposer || self.proposal.is_some() { return }
|
||||||
|
|
||||||
|
|||||||
@@ -16,12 +16,6 @@
|
|||||||
|
|
||||||
//! BFT Agreement based on a rotating proposer in different rounds.
|
//! BFT Agreement based on a rotating proposer in different rounds.
|
||||||
|
|
||||||
use std::collections::{HashMap, HashSet};
|
|
||||||
use std::hash::Hash;
|
|
||||||
|
|
||||||
use futures::{IntoFuture, Future, Stream, Sink};
|
|
||||||
use futures::future::{ok, loop_fn, Loop};
|
|
||||||
|
|
||||||
mod accumulator;
|
mod accumulator;
|
||||||
|
|
||||||
/// Messages over the proposal.
|
/// Messages over the proposal.
|
||||||
|
|||||||
Reference in New Issue
Block a user