Skip to content

Comments

Fix go 1.18 compatibility#138

Merged
jjeffcaii merged 1 commit intorsocket:masterfrom
echistyakov:fix_go_1_18_compat
Jan 5, 2025
Merged

Fix go 1.18 compatibility#138
jjeffcaii merged 1 commit intorsocket:masterfrom
echistyakov:fix_go_1_18_compat

Conversation

@echistyakov
Copy link
Contributor

Fix go 1.18 compatibility

Motivation:

In my earlier PR (#137) - I broke go1.18 compatibility.
(I was not aware this was a requirement for this repo/implementation.)
I used a sync/atomic package which is not available until go1.19.

Modifications:

Restoring the compatibility by using an equivalent go.uber.org/atomic package, rather than sync/atomic.
I see that the rest of the repo is using this package already, and the package is go1.18 compatible.

Result:

I am not entirely sure why the linter missed this on the original PR.
But this change should make everything compatible with go1.18 again.

Copy link
Member

@jjeffcaii jjeffcaii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jjeffcaii jjeffcaii merged commit f3f8376 into rsocket:master Jan 5, 2025
2 checks passed
@echistyakov echistyakov deleted the fix_go_1_18_compat branch January 6, 2025 17:28
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