From 42d002cee8f0dfc1f9e0e88528f33e9c3acec4aa Mon Sep 17 00:00:00 2001 From: Cillian O'Ruanaidh Date: Thu, 22 Apr 2021 22:10:36 +0100 Subject: [PATCH] Increase the default geocoder timeout to prevent geocoding timeouts in development The timeout default was 3 before, this changes it to 6. I presume these timeouts could happen in production too. --- config/initializers/geocoder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/geocoder.rb b/config/initializers/geocoder.rb index 40ac58adab..893f3d04ae 100644 --- a/config/initializers/geocoder.rb +++ b/config/initializers/geocoder.rb @@ -2,7 +2,7 @@ # The key is stored in config/application.yml. Geocoder.configure( - timeout: ENV.fetch('GEOCODER_TIMEOUT', 3).to_i, + timeout: ENV.fetch('GEOCODER_TIMEOUT', 6).to_i, lookup: ENV.fetch('GEOCODER_SERVICE', :google).to_sym, use_https: true, api_key: ENV.fetch('GEOCODER_API_KEY', ENV["GOOGLE_MAPS_API_KEY"])