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
It seems like there's no way to pass config to underlying Faraday adapters.
Right now we have to do this ugly hack:
module Clickhouse
class Connection
module Client
def client
@client ||= Faraday.new(url: url) do |f|
f.adapter :net_http do |http|
http.read_timeout = 300
end
end
end
end
end
end
Is there anyway to pass this config to the client? Or perhaps we should make 300 seconds the default timeout, since that's the default in Clickhouse server as well?
The text was updated successfully, but these errors were encountered:
It seems like there's no way to pass config to underlying Faraday adapters.
Right now we have to do this ugly hack:
Is there anyway to pass this config to the client? Or perhaps we should make 300 seconds the default timeout, since that's the default in Clickhouse server as well?
The text was updated successfully, but these errors were encountered: