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

Limit number of retries for light client queries #513

Merged
merged 1 commit into from
Sep 5, 2018
Merged

Conversation

svyatonik
Copy link
Contributor

@svyatonik svyatonik commented Aug 8, 2018

Implementation of this comment

@gavofyork gavofyork added A0-please_review Pull request needs code review. and removed A1-onice labels Sep 4, 2018
@gavofyork gavofyork added A8-looksgood and removed A0-please_review Pull request needs code review. labels Sep 5, 2018
@gavofyork gavofyork merged commit 95df01d into master Sep 5, 2018
dvdplm added a commit that referenced this pull request Sep 5, 2018
* master:
  Revert "Install llvm-tools-preview component (#643)" (#644)
  Revert "fix wasm executor compile error (#631)" (#642)
  Fetch parity-common dependencies from crates (#617)
  limit retry count in OnDemand (#513)
  Minor refactor for staking module (#659)
dvdplm added a commit that referenced this pull request Sep 5, 2018
…and-rlpcodec

* master:
  Revert "Install llvm-tools-preview component (#643)" (#644)
  Revert "fix wasm executor compile error (#631)" (#642)
  Fetch parity-common dependencies from crates (#617)
  limit retry count in OnDemand (#513)
  Minor refactor for staking module (#659)
@svyatonik svyatonik deleted the light_retry branch September 6, 2018 05:58
liuchengxu pushed a commit to autonomys/substrate that referenced this pull request Jun 3, 2022
helin6 pushed a commit to boolnetwork/substrate that referenced this pull request Jul 25, 2023
…tytech#513)

* subxt: Add subscription to runtime upgrades

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt: Synchronize and expose inner `RuntimeVersion` of the `Client`

Signed-off-by: Alexandru Vasile <[email protected]>

* examples: Add runtime update example

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt: Expose `RuntimeVersion` as locked

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt: Expose `Metadata` as locked

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt/storage: Use locked metadata

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt: Use parking lot RwLock variant for locked metadata

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt: Utilize locked metadata variant

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt/transaction: Use locked metadata variant

Signed-off-by: Alexandru Vasile <[email protected]>

* Update subxt to use locked version of the Metadata

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt: Add runtime update client wrapper

Signed-off-by: Alexandru Vasile <[email protected]>

* examples: Modify runtime update example

Signed-off-by: Alexandru Vasile <[email protected]>

* Fix clippy

Signed-off-by: Alexandru Vasile <[email protected]>

* Fix cargo check

Signed-off-by: Alexandru Vasile <[email protected]>

* codegen: Keep consistency with cargo check fix

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt: Remove unnecessary Arc

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt: Remove MetadataInner and use parking_lot::RwLock

Signed-off-by: Alexandru Vasile <[email protected]>

* Update polkadot.rs

Signed-off-by: Alexandru Vasile <[email protected]>

* Update polkadot.rs generation comment

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt: Switch to async::Mutex

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt: Block executor while decoding dynamic events

Signed-off-by: Alexandru Vasile <[email protected]>

* codegen: Use async API to handle async locking

Signed-off-by: Alexandru Vasile <[email protected]>

* Remove unused dependencies

Signed-off-by: Alexandru Vasile <[email protected]>

* Update examples and integration-tests

Signed-off-by: Alexandru Vasile <[email protected]>

* Fix test deadlock

Signed-off-by: Alexandru Vasile <[email protected]>

* Revert back to sync lock

Revert "Fix test deadlock"

This reverts commit 4a79933df23e81573611cb14be6c5b5b2b56d4df.

Revert "Update examples and integration-tests"

This reverts commit 5423f6eb4131582909d5a4ca70adff75e27cdd0e.

Revert "Remove unused dependencies"

This reverts commit e8ecbabb5b01a7ba4ae83b8bde36295a3f64daf7.

Revert "codegen: Use async API to handle async locking"

This reverts commit ced4646541c431adcb973369b1061b7b3cbfaae1.

Revert "subxt: Block executor while decoding dynamic events"

This reverts commit 8b3ba4a5eabb29f77ac1ca671450956fc479a33d.

Revert "subxt: Switch to async::Mutex"

This reverts commit f5bde9b79394a6bf61b6b9daefc36ceaa84b82be.

* subxt: Perform RuntimeVersion update before fetching metadata

Signed-off-by: Alexandru Vasile <[email protected]>

* Reintroduce MetadataInner

* Use parking lot instead of std::RwLock

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt: Reduce lock metadata time when decoding events

Signed-off-by: Alexandru Vasile <[email protected]>

* codegen: Update `validate_metdata` locking pattern

Signed-off-by: Alexandru Vasile <[email protected]>

* subxt/examples: Update polkadot download link

Signed-off-by: Alexandru Vasile <[email protected]>

* tests: Wrap metadata in a helper function

Signed-off-by: Alexandru Vasile <[email protected]>

* Update examples/examples/subscribe_runtime_updates.rs

Co-authored-by: James Wilson <[email protected]>

* subxt/updates: Update runtime if version is different

Signed-off-by: Alexandru Vasile <[email protected]>

Co-authored-by: James Wilson <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants