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

Clean up sc-peerset #9806

Merged
14 commits merged into from
Oct 1, 2021
Merged

Clean up sc-peerset #9806

14 commits merged into from
Oct 1, 2021

Conversation

liuchengxu
Copy link
Contributor

Some insubstantial clean-ups to sc-peerset.

client/peerset/src/peersstate.rs Outdated Show resolved Hide resolved
client/peerset/src/peersstate.rs Outdated Show resolved Hide resolved
client/peerset/src/peersstate.rs Outdated Show resolved Hide resolved
@gui1117
Copy link
Contributor

gui1117 commented Sep 23, 2021

looks good to me, except when removing exhaustive pattern matching.

Maybe it is personal opinion but exhaustive pattern matching are way better for maintaining code, when someone add a new variant then he can't miss to update any pattern matching.

client/peerset/src/peersstate.rs Outdated Show resolved Hide resolved
@bkchr bkchr 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. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Oct 1, 2021
@bkchr
Copy link
Member

bkchr commented Oct 1, 2021

@liuchengxu sorry for the delay. If you merge master, then we should be good to merge this pr.

@liuchengxu
Copy link
Contributor Author

@bkchr Master merged.

@bkchr
Copy link
Member

bkchr commented Oct 1, 2021

Ty

@bkchr
Copy link
Member

bkchr commented Oct 1, 2021

bot merge

@ghost
Copy link

ghost commented Oct 1, 2021

Waiting for commit status.

@ghost ghost merged commit c1e45a6 into paritytech:master Oct 1, 2021
ordian added a commit that referenced this pull request Oct 2, 2021
* master: (67 commits)
  Downstream `node-template` pull (#9915)
  Implement core::fmt::Debug for BoundedVec (#9914)
  Quickly skip invalid transactions during block authorship. (#9789)
  Add SS58 prefix for Automata (#9805)
  Clean up sc-peerset (#9806)
  Test each benchmark case in own #[test] (#9860)
  Add build with docker section to README (#9792)
  Simple Trait to Inspect Metadata (#9893)
  Pallet Assets: Create new asset classes from genesis config (#9742)
  doc: subkey usage (#9905)
  Silence alert about large-statement-fetcher (#9882)
  Fix democracy on-initialize weight (#9890)
  Fix basic authorship flaky test (#9906)
  contracts: Add event field names (#9896)
  subkey readme update on install (#9900)
  add feature wasmtime-jitdump (#9871)
  Return `target_hash` for finality_target instead of an Option (#9867)
  Update wasmtime to 0.29.0 (#9552)
  Less sleeps (#9848)
  remove unidiomatic (#9895)
  ...
ordian added a commit that referenced this pull request Oct 5, 2021
* master: (125 commits)
  Update multiple dependencies (#9936)
  Speed up timestamp generation when logging (#9933)
  First word should be Substrate not Polkadot (#9935)
  Improved file not found error message (#9931)
  don't read events in elections anymore. (#9898)
  Remove incorrect sanity check (#9924)
  Require crypto scheme for `insert-key` (#9909)
  chore: refresh of the substrate_builder image (#9808)
  Introduce block authorship soft deadline (#9663)
  Rework Transaction Priority calculation (#9834)
  Do not propagate host RUSTFLAGS when checking for WASM toolchain (#9926)
  Small quoting comment fix (#9927)
  add clippy to CI (#9694)
  Ensure BeforeBestBlockBy voting rule accounts for base (#9920)
  rm `.maintain` lock (#9919)
  Downstream `node-template` pull (#9915)
  Implement core::fmt::Debug for BoundedVec (#9914)
  Quickly skip invalid transactions during block authorship. (#9789)
  Add SS58 prefix for Automata (#9805)
  Clean up sc-peerset (#9806)
  ...
niklasad1 added a commit that referenced this pull request Oct 8, 2021
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. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants