Skip to content

fix golangci - #101

Merged
mangalaman93 merged 1 commit into
mainfrom
aman/golangci
Jul 18, 2026
Merged

fix golangci#101
mangalaman93 merged 1 commit into
mainfrom
aman/golangci

Conversation

@mangalaman93

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 18, 2026 10:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates Go tests to satisfy golangci-lint by preallocating slice capacity where the final size is known, reducing reallocation/copy during repeated append.

Changes:

  • Preallocates msg, msg1, and msg2 in large-message tests using make(..., 0, <known size>).
  • Preallocates the lengths slice in the multi-message test based on numMessages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mangalaman93
mangalaman93 merged commit aa78308 into main Jul 18, 2026
1 check passed
@mangalaman93
mangalaman93 deleted the aman/golangci branch July 18, 2026 14:55
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