mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 10:21:05 +00:00
Change SpawnedSubsystem type to log subsystem errors (#1878)
* Change SpawnedSubsystem type to log subsystem errors * Remove clone
This commit is contained in:
@@ -76,6 +76,7 @@ impl<C> Subsystem<C> for Subsystem1
|
||||
fn start(self, ctx: C) -> SpawnedSubsystem {
|
||||
let future = Box::pin(async move {
|
||||
Self::run(ctx).await;
|
||||
Ok(())
|
||||
});
|
||||
|
||||
SpawnedSubsystem {
|
||||
@@ -121,6 +122,7 @@ impl<C> Subsystem<C> for Subsystem2
|
||||
fn start(self, ctx: C) -> SpawnedSubsystem {
|
||||
let future = Box::pin(async move {
|
||||
Self::run(ctx).await;
|
||||
Ok(())
|
||||
});
|
||||
|
||||
SpawnedSubsystem {
|
||||
|
||||
Reference in New Issue
Block a user