This repository has been 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
approval-distribution: batched approval/assignment sending #6401
Merged
+222
−31
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
32d2ab8
Imple batched send
sandreim a938c47
Add batch tests
sandreim 0e81e4f
pub MAX_NOTIFICATION_SIZE
sandreim 27668d9
spell check
sandreim b26f42d
spellcheck ...
sandreim da40262
Fix comment
sandreim 1840ae2
o.O
sandreim 8fd2ae6
2 constants
sandreim 4525c1e
Ensure batch size is at least 1 element
sandreim ff23cb9
feedback impl
sandreim e5782dc
Merge branch 'master' of github.com:paritytech/polkadot into sandreim…
sandreim 668436b
Merge branch 'master' of github.com:paritytech/polkadot into sandreim…
sandreim 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
spell check
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
- Loading branch information
commit 27668d97838010f1cc1b7ffbca1b34867f5c2b01
There are no files selected for viewing
This file contains 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.
Would be safer if we guaranteed via
min
that it is at least as large as a single message.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.
Why is the size the same for approvals and assignments. I would assume that assignments are larger, so you just picked the larger one. ... Still just having two constants here would be hardly more work, but more correct and a bit more robust against future changes.
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.
That's fair. Initially I had 2 constants, but Idecided that it would be simpler with one, without compromising on anything else. I'll change it back to 2 constants and also provide the said guarantee.
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.
done