diff --git a/lib/github/client.rb b/lib/github/client.rb index bf1b2b0a523..e65d908d232 100644 --- a/lib/github/client.rb +++ b/lib/github/client.rb @@ -4,6 +4,8 @@ module Github def initialize(options) @connection = Faraday.new(url: options.fetch(:url)) do |faraday| + faraday.options.open_timeout = options.fetch(:timeout, 60) + faraday.options.timeout = options.fetch(:timeout, 60) faraday.authorization 'token', options.fetch(:token) faraday.adapter :net_http end