Make Proposer consume its reference on propose (#6190)

* Make `Proposer` consume its reference on `propose`

A proposer must be created per new round, so it makes sense to have the
proposer consume its own reference.

* Remove `ProposerInner`
This commit is contained in:
Bastian Köcher
2020-05-29 18:50:56 +02:00
committed by GitHub
parent 78a72c12d7
commit 841aab512f
8 changed files with 24 additions and 32 deletions
+1 -1
View File
@@ -38,7 +38,7 @@
//! );
//!
//! // The proposer is created asynchronously.
//! let mut proposer = futures::executor::block_on(proposer).unwrap();
//! let proposer = futures::executor::block_on(proposer).unwrap();
//!
//! // This `Proposer` allows us to create a block proposition.
//! // The proposer will grab transactions from the transaction pool, and put them into the block.