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

req/resp: use IfDisconnected::ImmediateError#4253

Merged
paritytech-processbot[bot] merged 3 commits intomasterfrom
ao-req-resp-immediate-error-if-disconnected
Nov 12, 2021
Merged

req/resp: use IfDisconnected::ImmediateError#4253
paritytech-processbot[bot] merged 3 commits intomasterfrom
ao-req-resp-immediate-error-if-disconnected

Conversation

@ordian
Copy link
Copy Markdown

@ordian ordian commented Nov 10, 2021

As discussed, we should attempt to preconnect to every validator and trying to connect if disconnected in req/resp will only waste time.

  • Update the comments.

// We are supposed to be connected to validators of our group via PeerSet,
// but at session boundaries that is kind of racy, in case a connection takes
// longer to get established, so we try to connect in any case.

we are supposed to be preconnected to the next session authorities as well, so it shouldn't be racy at session boundaries

@ordian ordian 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 Nov 10, 2021
@ordian ordian requested review from eskimor and tomaka November 10, 2021 13:56
@ordian
Copy link
Copy Markdown
Author

ordian commented Nov 12, 2021

bot merge

@paritytech-processbot paritytech-processbot bot merged commit c18d42d into master Nov 12, 2021
@paritytech-processbot paritytech-processbot bot deleted the ao-req-resp-immediate-error-if-disconnected branch November 12, 2021 17:01
drahnr pushed a commit that referenced this pull request Nov 15, 2021
* req/resp: use IfDisconnected::ImmediateError

* remove outdated comments

* fmt
rphmeier added a commit that referenced this pull request Mar 2, 2022
crystalin pushed a commit to moonbeam-foundation/polkadot that referenced this pull request Mar 2, 2022
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.

3 participants