Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions client/consensus/manual-seal/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl<Hash> ManualSeal<Hash> {
}
}

impl<Hash: Send + 'static> ManualSealApi<Hash> for ManualSeal<Hash> {
impl<Hash: std::fmt::Debug + Send + 'static> ManualSealApi<Hash> for ManualSeal<Hash> {
fn create_block(
&self,
create_empty: bool,
Expand All @@ -122,7 +122,10 @@ impl<Hash: Send + 'static> ManualSealApi<Hash> for ManualSeal<Hash> {
sender: Some(sender),
};
sink.send(command).await?;
receiver.await?
println!("Awaiting command result.");
let res = receiver.await?;
println!("Got response: {:?}", res);
res
}.boxed();

Box::new(future.map_err(Error::from).compat())
Expand Down