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

remove connected disconnected state only #3868

Merged
merged 15 commits into from
Sep 17, 2021

Conversation

drahnr
Copy link
Contributor

@drahnr drahnr commented Sep 16, 2021

Reduces #3803 to the essential change-set to simplify review

Closes #3777

Renames:

  • RelayChainSelectionWithFallback -> RelayChainSelection
  • RelayChainSelection -> RelayChainSelectionInner

Adds:

  • OverseerConnector usage
  • Basics

Removes:

  • Overseer Connected/Disconnected state handling and uses a bool is_relay_chain instead

@drahnr drahnr added A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. labels Sep 16, 2021
@drahnr drahnr requested a review from eskimor September 16, 2021 16:48
@drahnr drahnr self-assigned this Sep 16, 2021
@drahnr drahnr added the B0-silent Changes should not be mentioned in any release notes label Sep 16, 2021
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.

Has been reviewed as part of #3803

Copy link
Contributor

@Lldenaurois Lldenaurois left a comment

Choose a reason for hiding this comment

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

I think there are a few places where we are explicit about the type, but needn't be,

e.g. let this: Option<_> = opt.map(...);

But I'm also not sure whether it's not better to be explicit in cases where you are returning an option or some other specific type.

I can see arguments for both, but I generally like to be as terse as possible. The type annotations are helpful to the reader, however.

node/overseer/src/lib.rs Show resolved Hide resolved
node/overseer/src/lib.rs Show resolved Hide resolved
node/overseer/src/lib.rs Show resolved Hide resolved
node/service/src/lib.rs Outdated Show resolved Hide resolved
@rphmeier rphmeier merged commit 7bc3526 into master Sep 17, 2021
@rphmeier rphmeier deleted the bernhard-remove-connected-disconnected-state-only branch September 17, 2021 19:39
drahnr added a commit that referenced this pull request Sep 20, 2021
@@ -850,8 +914,10 @@ where
local_keystore.and_then(move |k| authority_discovery_service.map(|a| (a, k)));

let overseer_handle = if let Some((authority_discovery_service, keystore)) = maybe_params {
let (overseer, overseer_handle) = overseer_gen
// already have access to the handle
let (overseer, _handle) = overseer_gen
Copy link
Member

Choose a reason for hiding this comment

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

why is _handle here dropped? because handle is its clone?

ghost pushed a commit that referenced this pull request Sep 20, 2021
ordian added a commit that referenced this pull request Sep 20, 2021
* master:
  Bump `parity-util-mem` to 0.10.2 (#3897)
  Revert "remove connected disconnected state only (#3868)" (#3896)
  Companion for Generate storage info for pallet im_online #9654 (#3744)
  Gather memory usage statistics through `parity-util-mem` (#3893)
  ci: cache seed in fuzzer job (#3885)
  Add benchmarking for parachain runtime configuration pallet (#3862)
  Run fmt (#3887)
  remove connected disconnected state only (#3868)
drahnr added a commit that referenced this pull request Sep 20, 2021
ordian added a commit that referenced this pull request Sep 21, 2021
* master:
  weights: pallet-staking & pallet-bags-list (#3872)
  Re-enable metadata compare CI check (#3895)
  Bump `parity-util-mem` to 0.10.2 (#3897)
  Revert "remove connected disconnected state only (#3868)" (#3896)
  Companion for Generate storage info for pallet im_online #9654 (#3744)
  Gather memory usage statistics through `parity-util-mem` (#3893)
  ci: cache seed in fuzzer job (#3885)
  Add benchmarking for parachain runtime configuration pallet (#3862)
  Run fmt (#3887)
  remove connected disconnected state only (#3868)
  Dispute distribution improvements (#3853)
  Companion for Store voters in unsorted bags to get good stake iteration properties (#3413)
  Add info logging to dispute activation (#3870)
  update Rococo.json (#3871)
  Companion for #9764 (Force Unreserve) (#3840)
This pull request was closed.
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: remove connect/disconnect state of the Handle
5 participants