mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 10:01:17 +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:
@@ -95,10 +95,7 @@ impl CollationGenerationSubsystem {
|
||||
},
|
||||
msg = receiver.next().fuse() => {
|
||||
if let Some(msg) = msg {
|
||||
if let Err(err) = ctx.send_message(msg).await {
|
||||
tracing::warn!(target: LOG_TARGET, err = ?err, "failed to forward message to overseer");
|
||||
break;
|
||||
}
|
||||
ctx.send_message(msg).await;
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user