ncw / swift

Go language interface to Swift / Openstack Object Storage / Rackspace cloud files (golang)
MIT License
310 stars 107 forks source link

Fix authLock mutex, added a pointer on it #154

Closed brandon-welsch closed 4 years ago

brandon-welsch commented 4 years ago

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 commented 4 years ago

Thank you - that looks great. Will merge now.