Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Use SpawnNamed instead of Spawn in Overseer #1430

Merged
merged 3 commits into from
Jul 17, 2020
Merged

Use SpawnNamed instead of Spawn in Overseer #1430

merged 3 commits into from
Jul 17, 2020

Conversation

montekki
Copy link
Contributor

Closes #1378

@montekki montekki added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Jul 17, 2020
@montekki montekki requested review from bkchr and rphmeier July 17, 2020 15:15
@montekki montekki merged commit 220b87a into paritytech:master Jul 17, 2020
Comment on lines +173 to +177
async fn spawn(&mut self, name: &'static str, s: Pin<Box<dyn Future<Output = ()> + Send>>)
-> SubsystemResult<()>
{
self.spawn.spawn(name, s);
Ok(())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like the result or spawn is ignored here compared to the previous revision or am I missing something?
i.e. should it have a question mark after spawn?
this is test code, maybe it doesn't matter, just curious

@@ -101,7 +101,12 @@ impl From<std::convert::Infallible> for SubsystemError {
/// An asynchronous subsystem task..
///
/// In essence it's just a newtype wrapping a `BoxFuture`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this docstring is now a bit outdated

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overseer should use SpawnNamed
3 participants