-
Notifications
You must be signed in to change notification settings - Fork 1.6k
remove connected disconnected state only #3868
remove connected disconnected state only #3868
Conversation
There was a problem hiding this 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
There was a problem hiding this 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.
@@ -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 |
There was a problem hiding this comment.
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?
* 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)
* 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)
Reduces #3803 to the essential change-set to simplify review
Closes #3777
Renames:
RelayChainSelectionWithFallback
->RelayChainSelection
RelayChainSelection
->RelayChainSelectionInner
Adds:
OverseerConnector
usageBasics
Removes:
Overseer
Connected
/Disconnected
state handling and uses abool
is_relay_chain
instead