Skip to content

connmgr: Use atomic types.#3643

Merged
davecgh merged 1 commit intodecred:masterfrom
jholdstock:conn-mgr-atomic
Mar 9, 2026
Merged

connmgr: Use atomic types.#3643
davecgh merged 1 commit intodecred:masterfrom
jholdstock:conn-mgr-atomic

Conversation

@jholdstock
Copy link
Copy Markdown
Member

go 1.19 introduced new atomic types which hide the underlying primitive types so that all accesses are forced to use the atomic APIs. This makes the code less prone to human error and a bit less verbose.

Extracted from #3054

@davecgh davecgh added this to the 2.2.0 milestone Mar 9, 2026
@davecgh davecgh merged commit 9350295 into decred:master Mar 9, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants