mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 15:51:12 +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:
@@ -690,7 +690,7 @@ where
|
||||
RuntimeApiRequest::CandidateEvents(tx),
|
||||
));
|
||||
|
||||
ctx.send_message(msg.into()).await?;
|
||||
ctx.send_message(msg.into()).await;
|
||||
|
||||
Ok(rx.await??)
|
||||
}
|
||||
@@ -858,7 +858,7 @@ where
|
||||
{
|
||||
let (tx, rx) = oneshot::channel();
|
||||
|
||||
ctx.send_message(AllMessages::ChainApi(ChainApiMessage::BlockNumber(block_hash, tx))).await?;
|
||||
ctx.send_message(AllMessages::ChainApi(ChainApiMessage::BlockNumber(block_hash, tx))).await;
|
||||
|
||||
Ok(rx.await??.map(|number| number).unwrap_or_default())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user