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

connected disconnected state removal #3803

Closed
wants to merge 36 commits into from

Conversation

drahnr
Copy link
Contributor

@drahnr drahnr commented Sep 7, 2021

Removes the concept of a disconnected or connected overseer, which doesn't really have any practical meaning.

@drahnr drahnr self-assigned this Sep 7, 2021
@drahnr drahnr added A3-in_progress Pull request is in progress. No review needed at this stage. 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 Sep 7, 2021
@drahnr
Copy link
Contributor Author

drahnr commented Sep 8, 2021

Since we want to avoid all ways of possible pitfallls around the setup of an overseer, this will also unify the setup path to the OverseerBuilder with a few convenience fn helpers, and as a consequence will also cover #3773

@drahnr drahnr added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Sep 9, 2021
@ordian ordian linked an issue Sep 9, 2021 that may be closed by this pull request
Copy link
Member

@ordian ordian left a comment

Choose a reason for hiding this comment

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

Looks like a good simplification overall!

node/service/src/lib.rs Outdated Show resolved Hide resolved
node/overseer/src/dummy.rs Outdated Show resolved Hide resolved
Copy link
Member

@ordian ordian left a comment

Choose a reason for hiding this comment

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

Looks good, just a few questions.

@@ -35,6 +68,12 @@ pub(crate) fn impl_builder(info: &OverseerInfo) -> proc_macro2::TokenStream {
.iter()
.map(|subsystem_name| format_ident!("{}_with", subsystem_name))
Copy link
Member

Choose a reason for hiding this comment

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

where is it used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this can be removed again in a future PR, this was added when I was under the impression that we could get away without OverseerConnector which was wrong ultimately.

I'll remove this in a separate PR.

node/service/src/relay_chain_selection.rs Show resolved Hide resolved
cli/src/lib.rs Outdated Show resolved Hide resolved
node/service/src/lib.rs Show resolved Hide resolved
node/service/src/overseer.rs Show resolved Hide resolved
node/service/src/relay_chain_selection.rs Outdated Show resolved Hide resolved
@eskimor
Copy link
Member

eskimor commented Sep 14, 2021

The diff is quite a bit to digest for me at least - trying on Rococo before merge, might be a good idea.

@drahnr
Copy link
Contributor Author

drahnr commented Sep 14, 2021

The diff is quite a bit to digest for me at least - trying on Rococo before merge, might be a good idea.

Fair point, it got larger than anticipated and touches a lot of essentials.

node/service/src/lib.rs Show resolved Hide resolved
node/service/src/lib.rs Show resolved Hide resolved
@drahnr drahnr closed this Sep 20, 2021
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. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
6 participants