Skip to content

collector: fix error handling in Collect and counterAdd#258

Merged
sravotto merged 1 commit into
mainfrom
sr8_fixes
Mar 17, 2026
Merged

collector: fix error handling in Collect and counterAdd#258
sravotto merged 1 commit into
mainfrom
sr8_fixes

Conversation

@sravotto
Copy link
Copy Markdown
Contributor

Add rows.Err() check after database iteration loop, replace unchecked type assertion with comma-ok pattern, and log errors in counterAdd instead of silently swallowing them.

Add rows.Err() check after database iteration loop, replace unchecked
type assertion with comma-ok pattern, and log errors in counterAdd
instead of silently swallowing them.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sravotto sravotto marked this pull request as ready for review March 17, 2026 18:20
Copy link
Copy Markdown

@BramGruneir BramGruneir left a comment

Choose a reason for hiding this comment

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

LGTM

@sravotto sravotto merged commit 92d8472 into main Mar 17, 2026
7 checks passed
@sravotto sravotto deleted the sr8_fixes branch March 18, 2026 13: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