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 initializing sqs client #335

Merged
merged 1 commit into from
Mar 15, 2017
Merged

Conversation

h3poteto
Copy link
Contributor

@h3poteto h3poteto commented Mar 15, 2017

I try to set custom sqs client in initializer, like this:

Shoryuken.configure_server do |config|
  config.sqs_client = Aws::SQS::Client.new(
    endpoint: ENV["SQS_ENDPOINT"],
    secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"],
    access_key_id: ENV["AWS_ACCESS_KEY_ID"],
    region: ENV["AWS_REGION"]
  )
end

But, Shoryuken.sqs_client was not my custom sqs client.

The class variable @@sqs_client is not assigned in Shoryuken.sqs_client=(sqs_client).

@phstc
Copy link
Collaborator

phstc commented Mar 15, 2017

Oops... has no idea what's doing

Thanks a ton @h3poteto. Added to master 🍻

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