Skip to content

fix(concurrency): fix data race on scanning#99

Merged
sethrylan merged 1 commit intomainfrom
fix-race
Feb 22, 2026
Merged

fix(concurrency): fix data race on scanning#99
sethrylan merged 1 commit intomainfrom
fix-race

Conversation

@sethrylan
Copy link
Owner

@sethrylan sethrylan commented Feb 22, 2026

This pull request refactors the Scan struct's scanning field to use atomic.Bool instead of a plain boolean. This change improves thread safety for concurrent operations, especially when scanning Redis keys asynchronously. The refactor also updates all relevant usages and tests to accommodate the new atomic type.

@sethrylan sethrylan self-assigned this Feb 22, 2026
@sethrylan sethrylan enabled auto-merge (squash) February 22, 2026 17:05
@sethrylan sethrylan merged commit bae1ba3 into main Feb 22, 2026
6 checks passed
@sethrylan sethrylan deleted the fix-race branch February 22, 2026 17:07
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.

1 participant