This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/*: fix data races in PubSub and ticker test (#4155)
Fixes a data race in PubSub singleton instantiation where the singleton object creation is not protected from concurrent initialization. Fixes a data race in the ticker test where a variable is written/read to/from without protected access from multiple goroutines. Signed-off-by: Shashank Ram <[email protected]>
- Loading branch information
1 parent
23a8f5f
commit 2d2be96
Showing
2 changed files
with
15 additions
and
2 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