-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Some questions about StorageUrl and Mutex in Connection struct #142
Comments
We could do - not a bad plan!
The lock will be held during a re-authentication
I've tried to keep the library backwards compatible which is why there are no setters/getters. There perhaps should be Getters for StorageURL - I'm not sure it needs a setter as if you are setting it it is likely to be just at the start. |
But getter don't break backwards compatible. It's looks like new feature. It can be locked with rwmutex and work well.
Yes, setter shouldn't be. |
I have to do some custom request. My swift provider support bulk deletion only in post method. And I have been copying a lot of code (and got some potential problem with sync reading StorageUrl) only for change a few words in method :-) |
Do you want to send a PR to make some of those things public? |
Why don't use
sync.RWMutex
andRLock
in methodConnection.storage
for read StorageUrl?Why
OnReAuth
don't lock mutex in this case?Why variable
Connection.StorageUrl
is exportable and sensitive to sync and you don't have exportable getters and setters for this variable with correct locks?The text was updated successfully, but these errors were encountered: