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
Allow pallet in construct_runtime to have fixed index #6969
Merged
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
3556df3
implement index for pallet + some tests
gui1117 766f510
add test and doc
gui1117 d246bdf
remove deprecated and document behavior
gui1117 11a3af2
update internal doc
gui1117 ce2d1bd
Apply suggestions from code review
gui1117 b56cbd7
address review
gui1117 da702ae
use index for all module, break construct_runtime
gui1117 0290c47
fix line length
gui1117 82e36e4
Merge remote-tracking branch 'origin/master' into gui-construct-runti…
gui1117 6c8e80a
implement migration helper funciton in scheduler
gui1117 4e5b4f8
fix start at index 0
gui1117 95a1eb7
Update frame/scheduler/src/lib.rs
gui1117 9518e5b
Merge remote-tracking branch 'origin/master' into gui-construct-runti…
gui1117 a830e2f
Update frame/support/procedural/src/lib.rs
gui1117 9812da2
bump frame-metadata crate
gui1117 5d86201
factorize
gui1117 078a543
avoid some unwrap and remove nightly join
gui1117 4bba712
Update frame/support/src/event.rs
gui1117 c6f073b
fix test
gui1117 43856fd
add test and improve error message
gui1117 7da2738
factorize test
gui1117 b9fca7e
keep iterator, and use slice instead of vec
gui1117 61019e7
refactor to avoid to have expects
gui1117 a9d454a
Merge remote-tracking branch 'origin/master' into gui-construct-runti…
gui1117 ae0f859
small refactor
gui1117 85a65f2
Test something
bkchr ab0c998
Make sure we update the `Cargo.lock`
bkchr fda8a1a
Apply suggestions from code review
gui1117 95ef421
return 2 error
gui1117 68b472e
Apply suggestions from code review
gui1117 21510d4
Merge remote-tracking branch 'origin/master' into gui-construct-runti…
gui1117 6feb460
Update frame/scheduler/src/lib.rs
gui1117 f2de8f2
fix typo
gui1117 3f38e1a
Revert "fix typo"
gui1117 492a83f
Revert "Update frame/scheduler/src/lib.rs"
gui1117 d04f8cd
Merge remote-tracking branch 'origin/master' into gui-construct-runti…
gui1117 986155b
Merge remote-tracking branch 'origin/master' into gui-construct-runti…
gui1117 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
refactor to avoid to have expects
- Loading branch information
commit 61019e704f211ef400db9262d99fbf635dba7997
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
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.
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.
given assumption that
Systemis always there, maybe you can maybe simplify a thing or two byfn get_system() -> Option<&ModulePart>orfn is_system() -> boolbut just an idea.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.
indeed, for now system is only queried one time and filtered out only one time too, but if I would refactor such functions looks more readable.