-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix data race in root endpoint (#2745)
There is a data race in the root endpoint when the action accesses action.App.coreVersion and other properties from action.App. These properties are updated in the App.Tick() goroutine. This commit fixes the data race by wrapping these properties in a read write lock. Whenever the properties are updated the write lock is acquired. Similarly, whenever the properties are read the read lock is acquired.
- Loading branch information
Showing
2 changed files
with
45 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters