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.
This commit is contained in:
Cillian O'Ruanaidh
2021-04-22 22:10:36 +01:00
parent cd97f1a6ef
commit 42d002cee8

View File

@@ -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"])