-
Notifications
You must be signed in to change notification settings - Fork 113
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
Etsy client not usable thread-safely with multiple API keys #29
Comments
Something like this?
|
Sort of, but also including the methods currently accessible through the module interface like:
|
hi, any plans to include this in further releases? |
Nobody tested the branch, so I didn't want to release it. I don't have any etsy apps anymore, so I can't really test it against any sort of real usage, and I don't want to inadvertently break people's production apps. |
Same for myself, I'm not actively using the etsy api myself so we were just waiting on some regression testing. |
Using multiple API credentials with the client is currently impossible to do thread-safely since everything is in the global module. I propose creating an Etsy::Client class, like the Twitter gem's Twitter::Client. This would permit creating separate instances of it for the multi-key use case, and an instance of it could be stuffed in the module to keep backwards compatibility.
The text was updated successfully, but these errors were encountered: