-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#18781 from SimonRichardson/fix-data-races
juju#18781 There is a potential for data races around the context of the api remote caller. Getting the context cancellation right is a bit tricky because of how we want the semantics to be for changes. The solution is simple, put the cancellation in the goroutine, so there is no possibility of a race. Everything is sequenced.
- Loading branch information
Showing
2 changed files
with
33 additions
and
18 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