mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
overseer: send_msg should not return an error (#1995)
* send_message should not return an error * Apply suggestions from code review Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * s/send_logging_error/send_and_log_error Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com>
This commit is contained in:
@@ -143,13 +143,13 @@ where
|
||||
|
||||
let (sender, receiver) = futures::channel::oneshot::channel();
|
||||
|
||||
overseer.wait_for_activation(parent_header_hash, sender).await?;
|
||||
overseer.wait_for_activation(parent_header_hash, sender).await;
|
||||
receiver.await.map_err(|_| Error::ClosedChannelAwaitingActivation)??;
|
||||
|
||||
let (sender, receiver) = futures::channel::oneshot::channel();
|
||||
overseer.send_msg(AllMessages::Provisioner(
|
||||
ProvisionerMessage::RequestInherentData(parent_header_hash, sender),
|
||||
)).await?;
|
||||
)).await;
|
||||
|
||||
let mut timeout = futures_timer::Delay::new(PROPOSE_TIMEOUT).fuse();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user