Skip to content

chores: use Peek and Discard - #186

Open
rbqvq wants to merge 1 commit into
pires:mainfrom
rbqvq:patch-1
Open

rbqvq wants to merge 1 commit into
pires:mainfrom
rbqvq:patch-1

Conversation

@rbqvq

@rbqvq rbqvq commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Use Peek to avoid a copy.
Then use Discard to drop written data.

@coveralls

coveralls commented Sep 29, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 97.646%. remained the same — rbqvq:patch-1 into pires:main

@rbqvq
rbqvq marked this pull request as draft September 29, 2026 12:10
@rbqvq rbqvq changed the title chores: use bufReader.WriteTo chores: use Peek and Discard Sep 29, 2026
@rbqvq
rbqvq marked this pull request as ready for review September 29, 2026 12:33
Use Peek to avoid a copy.
Then use Discard to drop written data.

Signed-off-by: Coia Prant <coiaprant@gmail.com>
@rbqvq
rbqvq force-pushed the patch-1 branch 2 times, most recently from d0c0164 to 27824ce Compare September 29, 2026 12:34
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