Skip to content

Conversation

@dnr
Copy link
Contributor

@dnr dnr commented Oct 27, 2025

What changed?

Add locking in newRateLimitManager and Stop.

Why?

Unlikely but potential data race if we get a dynamic config subscription callback after Subscribe returns before assigning to the field in the constructor.

How did you test it?

  • built and ran existing tests

@dnr dnr requested review from a team as code owners October 27, 2025 22:54
@dnr dnr merged commit 8e2568d into temporalio:main Oct 27, 2025
57 checks passed
chaptersix pushed a commit that referenced this pull request Oct 30, 2025
## What changed?
Add locking in newRateLimitManager and Stop.

## Why?
Unlikely but potential data race if we get a dynamic config subscription
callback after Subscribe returns before assigning to the field in the
constructor.

## How did you test it?
- [x] built and ran existing tests
@dnr dnr deleted the rlm1 branch November 11, 2025 06:52
@chaptersix chaptersix mentioned this pull request Nov 19, 2025
5 tasks
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