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
offchain storage lock #6010
Merged
Merged
offchain storage lock #6010
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
c1032ae
feat/offchain/storage: add remove interface method
3fa59ee
feat/offchain/storeage: add remote to StorageValueRef
4557bd7
feat/offchain/storage: add storage lock
be1988f
fix/review: Apply suggestions from code review
drahnr ce60655
refactor/offchain/storage/lock: introduce `Lockable` trait part 1 of 2
c058ad9
chore/offchain/rename: _remove -> clean
1cb9909
feat/offchain/storage/lock: add TimeAndBlock based part 2 of 2
c6f60c7
fix/offchain/storage/lock: block and time expiry must be && not ||
09e0c2c
chore/offchain/storage: minor fmt doc comments
9d6716c
doc/comment: prefer markdown emphasis over CAPS
74e2e8c
doc/comment: rewrap multiline module level docs
05d7e54
doc/comment: rephrase
47d492f
impl sleep_until and use the actual time for the test env
48d15ec
feat/test: add more tests, ignore some sample impl doctests
add98ae
fix/review: Apply suggestions from code review
drahnr 9d4ef5d
doc/comment: better description
1bc3b6a
fix/review: Apply suggestions from code review
drahnr debe87d
chore/storage: lifetime cleanup
d6a5306
fix/cleanup: trait bounds, cargo-spellcheck + extra explanations
50e5ef2
fix/doc: periods +-
37a8b40
Merge remote-tracking branch 'origin' into bernhard/offchain-storage-…
0bc2047
fix/review: Apply suggestions from code review
drahnr cc85933
cleanup: remove explicit lifetime bound, copy -> clone
8e14a12
fix/review: make trait Lockable contain only static, try_lock should …
828e5b9
chore/lifetimes: remove a couple of lifetime bounds which the compile…
2a99191
refactor: migrate to an instant based
fb38887
fix/feedback: fix, reduce, rename, docs update pending
c3dd254
docs/reword: adjust to changed code
b899583
fix/offchain/testing: timestamp and sleep_until shall not block
7dddd76
chore/lines: lines must < 100 chars
cf1a87a
fix/docs: add missing pub field doc comments
e6e6ec2
refactor/x: try_lock does not need to return an Option<_>
78bf501
refactor/simplify: a better way of waiting for a lock to resolve
2d6fcba
docs: consistency
7febfe9
fix/line: < 100
d6e16f4
Merge remote-tracking branch 'origin/master' into bernhard/offchain-s…
230ac43
fix/doctest/use: avoid crate::
9737473
fix/doctest: *
2155ad8
fix/review: remove unused trait bound
192df57
fix/review: pretty by const fn
ef160b9
fix/review: reduce default timeout to 20s
80abc9d
docs: grammar
efab9cf
fix/review: add with_block_deadline
ae0f8dc
doc: revamp BlockNumberProvider documentation to be less frame centric
230c0d9
chore: fmt
8e425ac
docs: add missing doc comment
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,5 +19,6 @@ | |
|
|
||
| pub mod http; | ||
| pub mod storage; | ||
| pub mod storage_lock; | ||
|
|
||
| pub use sp_core::offchain::*; | ||
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
Oops, something went wrong.
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.