-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: combine block writing in persistence task #9960
Conversation
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.
this is looking a lot better
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.
lgtm, nit
&self, | ||
blocks: &[ExecutedBlock], | ||
provider_rw: &DatabaseProviderRW<DB>, | ||
static_file_provider: &StaticFileProvider, |
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.
I guess for consistency... but it shouldn't be needed, since it's a private method and can be taken from self
. not strongly opinated
Co-authored-by: Federico Gimenez <fgimenez@users.noreply.github.com>
Since we just need to commit in a specific order, this combines all the existing writing methods that were called when handling
SaveBlocks
.