forked from decred/dcrd
-
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.
server: Use atomic types for some svr peer fields.
This updates a couple of cases of server peer data fields protected by an individual mutex to make use of the newer atomic types introduced in Go 1.19 instead. This is desirable since atomic types are both simpler to use and more efficient when the data being protected does not require additional logic in the critical section as is the case for the updated fields.
- Loading branch information
Showing
2 changed files
with
9 additions
and
34 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