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 2.7k
chainHead: Limit ongoing operations #14699
Merged
+394
−100
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
4787dba
chainHead/api: Make storage/body/call pure RPC methods
lexnv 8050811
chainHead: Add mpsc channel between RPC methods
lexnv 3b30eb3
chainHead/subscriptions: Extract mpsc::Sender via BlockGuard
lexnv d5305a9
chainHead/subscriptions: Generate and provide the method operation ID
lexnv 50c840d
chainHead: Generate `chainHead_body` response
lexnv 6c5940c
chainHead: Generate `chainHead_call` response
lexnv 589efa8
chainHead: Generate `chainHead_storage` responses
lexnv 8062837
chainHead: Propagate responses of methods to chainHead_follow
lexnv 4f7b445
chainHead/tests: Adjust `chainHead_body` responses
lexnv 53fcd99
chainHead/tests: Adjust `chainHead_call` responses
lexnv 167dd72
chainHead/tests: Adjust `chainHead_call` responses
lexnv 35aca6d
chainHead/tests: Ensure unique operation IDs across methods
lexnv 008fa22
chainHead/events: Remove old method events
lexnv 6c30aef
chainHead/subscriptions: Add limit helper
lexnv a29d677
chainHead/subscription: Expose limits to `BlockGuard`
lexnv a33d80c
chainHead/tests: Adjust testing to ongoing operations
lexnv 40a73fb
chainHead: Make limits configurable via `ChainHeadConfig`
lexnv eb15293
chainHead/tests: Adjust testing to `ChainHeadConfig`
lexnv a026fe0
chainHead/tests: Ensure operation limits discards items
lexnv 4e4cca8
Merge remote-tracking branch 'origin/master' into lexnv/chainhead_limits
lexnv defc196
chainHead: Improve documentation
lexnv 4cacbc1
chainHead: Rename `OngoingOperations` -> `LimitOperations`
lexnv 09c743c
chainHead: Rename reserve -> reserve_at_most
lexnv 06fec3e
Merge remote-tracking branch 'origin/master' into lexnv/chainhead_limits
ab481e8
chainHead: Use duration const instead of u64
lexnv 09e7372
chainHead/subscription: Use tokio::sync::Semaphore for limits
lexnv 8954c33
Merge remote-tracking branch 'origin/lexnv/chainhead_limits' into lex…
lexnv a3df109
Update client/rpc-spec-v2/src/chain_head/subscription/inner.rs
lexnv 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
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
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
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
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
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
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
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.