You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe https://github.com/toptal/chewy/blob/master/lib/chewy.rb#L125 is where the client is created, but I'm not sure the best way to pass a block to that. Could I simply override the client myself by setting Thread.current[:chewy_client] to whatever I want? Are there multi-threaded concerns I should be aware of if I do that?
The text was updated successfully, but these errors were encountered:
Well, I would rather redefine the whole method in my application, also I would (if I would be on your place) create a patch since this is a good observation :)
I'd like to pass a block to configure the faraday instance of the Elasticsearch::Client. From elasticsearch-transport readme:
You can use any standard Faraday middleware and plugins in the configuration block, for example sign the requests for the AWS Elasticsearch service:
I believe https://github.com/toptal/chewy/blob/master/lib/chewy.rb#L125 is where the client is created, but I'm not sure the best way to pass a block to that. Could I simply override the client myself by setting
Thread.current[:chewy_client]
to whatever I want? Are there multi-threaded concerns I should be aware of if I do that?The text was updated successfully, but these errors were encountered: