Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix authLock mutex, added a pointer on it #154

Merged
merged 1 commit into from
Feb 6, 2020
Merged

Fix authLock mutex, added a pointer on it #154

merged 1 commit into from
Feb 6, 2020

Conversation

brandon-welsch
Copy link
Contributor

Hello,

go vet is reporting an issue with the Mutex value in struct Connection.

go vet ./...
swift/client.go:34:30: literal copies lock value from c: .../vendor/github.com/ncw/swift.Connection contains sync.Mutex

It should be a pointer instead of a value, I have updated the package to fix this issue.

@ncw
Copy link
Owner

ncw commented Feb 6, 2020

Thank you - that looks great. Will merge now.

@ncw ncw merged commit fb21762 into ncw:master Feb 6, 2020
ncw added a commit that referenced this pull request Jun 16, 2020
This reverts commit fb21762.

It is difficult to fill in a nil mutex correctly.

The original complaint was that `go vet` had errors, however that
didn't seem to be in this code.
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