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

delete String() function #3488

Merged
merged 1 commit into from
Dec 6, 2023
Merged

delete String() function #3488

merged 1 commit into from
Dec 6, 2023

Conversation

pengbinbin1
Copy link
Contributor

@pengbinbin1 pengbinbin1 commented Dec 5, 2023

Pull Request

What type of this PR

Examples of user facing changes:

  • Features

In the net package,ip has implement the String() function,so we can print it directly with "%s"

Which issue(s) this PR fixes

Fixes #(issue-number)

WHAT

🤖[deprecated] Generated by Copilot at 6a0dd3a

Improved logging performance and readability in ipam.go. Removed redundant string conversions of IP addresses in log messages.

🤖[deprecated] Generated by Copilot at 6a0dd3a

ipam.go is the master of the net
Allocating and managing every address
No more wasted cycles on ip.String()
Only pure and efficient code in the log

HOW

🤖[deprecated] Generated by Copilot at 6a0dd3a

  • Remove redundant ip.String() calls from log messages in pkg/ipam/ipam.go (link, link, link, link)

Signed-off-by: pengbinbin1 <pengbiny@163.com>
@oilbeater oilbeater merged commit 874da5b into kubeovn:master Dec 6, 2023
59 checks passed
zbb88888 pushed a commit that referenced this pull request Dec 6, 2023
Signed-off-by: pengbinbin1 <pengbiny@163.com>
zbb88888 pushed a commit that referenced this pull request Dec 6, 2023
Signed-off-by: pengbinbin1 <pengbiny@163.com>
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.

2 participants