-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, plans were initialised through a racy assignment. Now they are initialised through a sync.Once, which is more clearly race free and also makes the intent clear (it is initialisation). With this change it's also necessary to make the plan more pointer-like, since if you pass a struct around by value with a lock in it, you are going to have a bad time. This was pointed out to me by the gometalinter. Fixes #296. Supercedes #153.
- Loading branch information
Showing
1 changed file
with
16 additions
and
21 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