Skip to content

chore: reduce string allocations in stripPort - #20554

Open
sahusneha2004 wants to merge 1 commit into
googleapis:mainfrom
sahusneha2004:test-regression-strip-port
Open

sahusneha2004 wants to merge 1 commit into
googleapis:mainfrom
sahusneha2004:test-regression-strip-port

Conversation

@sahusneha2004

Copy link
Copy Markdown
Contributor

No description provided.

@sahusneha2004
sahusneha2004 requested review from a team as code owners September 18, 2026 10:48

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

Copy link
Copy Markdown
Contributor

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 stripPort function in storage/metrics.go to quickly return the host if it does not contain a colon, avoiding an unnecessary call to net.SplitHostPort. There are no review comments to address, and the changes look correct and straightforward.

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.

1 participant