Skip to content

Upgrade to v3.9.8#10

Merged
varun-doshi merged 1 commit into
integration-v3.9.8from
vd/add-espresso-utils
Apr 3, 2026
Merged

Upgrade to v3.9.8#10
varun-doshi merged 1 commit into
integration-v3.9.8from
vd/add-espresso-utils

Conversation

@varun-doshi
Copy link
Copy Markdown

Adds 2 files on top of upstream commit of v3.9.8

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the .github/CODEOWNERS file to consolidate repository ownership under a default set of owners and introduces a new utility function, NewEspressoTableConfig, in core/rawdb/espresso_freezer.go. Feedback for the new function suggests optimizing map initialization by pre-allocating capacity and correcting a minor Go formatting issue regarding the assignment operator.

package rawdb

func NewEspressoTableConfig(tables map[string]bool) map[string]freezerTableConfig {
result:= make(map[string]freezerTableConfig)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The map result is initialized without a specified capacity. Since the number of elements is known from the tables input, it is more efficient to pre-allocate the map capacity using len(tables) to avoid multiple re-allocations during the loop. Additionally, there is a minor style issue: there should be a space before the := operator to adhere to standard Go formatting (gofmt).

Suggested change
result:= make(map[string]freezerTableConfig)
result := make(map[string]freezerTableConfig, len(tables))
References
  1. Standard Go formatting (gofmt) requires a space before the := operator for readability. (link)

Copy link
Copy Markdown

@zacshowa zacshowa left a comment

Choose a reason for hiding this comment

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

Just a question, otherwise looks good to me.

@@ -0,0 +1,9 @@
package rawdb

func NewEspressoTableConfig(tables map[string]bool) map[string]freezerTableConfig {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just because I lack context; whats up with this?
I only ask because we encountered some weird error related to parsing some freezer table type on startup while deploying NodeOps yesterday.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

no custom change made in this PR
This is basically the same as this PR: #9

But for context on the code maybe @Sneh1999 can provide more info

@varun-doshi varun-doshi merged commit aef37dd into integration-v3.9.8 Apr 3, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants