We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you send multiple requests quickly, they overwrite the options with the receiver.
Expected: Send three requests to send message with a receiver field different phone numbers. Messages are sent to three different numbers.
Observed behavior: the message is sent three times to same number.
Here is the offending code where the request shares / reuses the same options by copying the pointer to the options.
promtotwilio/options_with_handler.go
Line 54 in d63336c
The service needs a mutex around this option or make a deep copy of the options before mutating it.
The text was updated successfully, but these errors were encountered:
Here's the simplest way to understand the problem: https://play.golang.org/p/rZyz-ivCnch
Sorry, something went wrong.
And here's a simple fix to that example: https://play.golang.org/p/_NLLKtaP0mv
Successfully merging a pull request may close this issue.
If you send multiple requests quickly, they overwrite the options with the receiver.
Expected: Send three requests to send message with a receiver field different phone numbers. Messages are sent to three different numbers.
Observed behavior: the message is sent three times to same number.
Here is the offending code where the request shares / reuses the same options by copying the pointer to the options.
promtotwilio/options_with_handler.go
Line 54 in d63336c
The service needs a mutex around this option or make a deep copy of the options before mutating it.
The text was updated successfully, but these errors were encountered: