mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-03 15:57:08 +00:00
Derive From for AllMessages and simplify send_msg (#1774)
This commit is contained in:
1 parent
579614d127
commit
5d8ae8d024
4 files changed
+41
-41
No files matched your search
@@ -192,8 +192,8 @@ impl OverseerHandler {
|
||||
}
|
||||
|
||||
/// Send some message to one of the `Subsystem`s.
|
||||
pub async fn send_msg(&mut self, msg: AllMessages) -> SubsystemResult<()> {
|
||||
self.events_tx.send(Event::MsgToSubsystem(msg)).await.map_err(Into::into)
|
||||
pub async fn send_msg(&mut self, msg: impl Into<AllMessages>) -> SubsystemResult<()> {
|
||||
self.events_tx.send(Event::MsgToSubsystem(msg.into())).await.map_err(Into::into)
|
||||
}
|
||||
|
||||
/// Inform the `Overseer` that that some block was finalized.
|
||||
|
||||
Reference in new issue
Block a user