This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Companion for: try-runtime::follow-chain - keep connection
#5968
Merged
paritytech-processbot
merged 10 commits into
paritytech:master
from
pmikolajczyk41:piomiko/try-runtime/keep-connection
Sep 6, 2022
Merged
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3bd3513
Adjust to the new API
pmikolajczyk41 185de69
Remove mutability
pmikolajczyk41 83a3b21
Async constructor
pmikolajczyk41 e39b01e
unwrap result
pmikolajczyk41 5f6fc89
do not panic
pmikolajczyk41 5059c58
suggestion
pmikolajczyk41 81e60b9
Merge remote-tracking branch 'origin/master' into piomiko/try-runtime…
pmikolajczyk41 52dc6e5
leftover
pmikolajczyk41 75295b0
Merge remote-tracking branch 'origin/master' into piomiko/try-runtime…
e6f9f5a
update lockfile for {"substrate"}
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
This
.unwrap()looks dangerous. Previously such errors were handled byif letbelow: can't we do lazy initialization in the loop to try to recover from them? CC @niklasad1There 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.
initially, I put
unwraphere since afaik this method serves just for testing purposes; anyway, I modified it - does it look better now?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.
Thanks — to be honest, I'm not familiar with this code, nor that it's for testing only. Just noticed that previously non-panicking code stopped to be such.
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.
yeah sure, that's a good point
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.
either way is fine for me,
The rpc connections is only used for
CLI integrations testsand if the connection fails means that RPC server hasn't started or the URL is wrong.Now we try to connect forever as it was before so fine which would be caught by the CI :)