Skip to content
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

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

Rjected
Copy link
Member

@Rjected Rjected commented Jul 31, 2024

Since we just need to commit in a specific order, this combines all the existing writing methods that were called when handling SaveBlocks.

@Rjected Rjected added C-enhancement New feature or request A-db Related to the database labels Jul 31, 2024
@Rjected Rjected requested a review from joshieDo July 31, 2024 20:41
Copy link
Collaborator

@mattsse mattsse left a 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

Copy link
Member

@fgimenez fgimenez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, nit

crates/engine/tree/src/persistence.rs Outdated Show resolved Hide resolved
&self,
blocks: &[ExecutedBlock],
provider_rw: &DatabaseProviderRW<DB>,
static_file_provider: &StaticFileProvider,
Copy link
Collaborator

@joshieDo joshieDo Aug 1, 2024

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>
@joshieDo joshieDo enabled auto-merge August 1, 2024 09:46
@joshieDo joshieDo added this pull request to the merge queue Aug 1, 2024
Merged via the queue into main with commit 93ab098 Aug 1, 2024
32 checks passed
@joshieDo joshieDo deleted the dan/unified-save-blocks-method branch August 1, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-db Related to the database C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants