-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop external atomic dependency (#72)
Now that this package only supports Go 1.19 and 1.20, it can make use of the atomic.Bool [1] added in Go 1.19. [1] https://pkg.go.dev/sync/atomic#Bool This has the effect of eliminating any external dependencies from this package -- minus testify, which is only used for testing.
- Loading branch information
Showing
3 changed files
with
2 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,8 +146,7 @@ import ( | |
"io" | ||
"strings" | ||
"sync" | ||
|
||
"go.uber.org/atomic" | ||
"sync/atomic" | ||
) | ||
|
||
var ( | ||
|
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