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

Replace .Str()+strconv.Format() in logs with .Uint32 for uint32 types #123

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

kirugan
Copy link
Contributor

@kirugan kirugan commented Jan 16, 2025

Uint32() implementation:

...
e.buf = enc.AppendUint32(enc.AppendKey(e.buf, key), i)
...

AppendUint32() in turn calls strconv.AppendUint(dst, uint64(val), 10) (mind base=10 as we used before).
From AppendUint() godoc:

// AppendUint appends the string form of the unsigned integer i,
// as generated by [FormatUint], to dst and returns the extended buffer.

@kirugan kirugan merged commit e3195ae into main Jan 16, 2025
11 checks passed
@kirugan kirugan deleted the kirugan/replace-str-with-uint32 branch January 16, 2025 05:56
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