From e7e94a66ae6dc878a91e62d413cdaa85a3b965dd Mon Sep 17 00:00:00 2001 From: Ghassan Maslamani Date: Mon, 22 Jul 2024 15:35:36 +0200 Subject: [PATCH] fix: set the correct config name `connect_timout` mongoid This change just fix the name of the variable that is respoinsbile for: > The time to wait to establish a connection before timing out, > in seconds ref: https://www.mongodb.com/docs/offline/mongoid-7.5.tar.gz --- config/mongoid.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/mongoid.yml b/config/mongoid.yml index a993efe89de..6b3bf0bfad0 100644 --- a/config/mongoid.yml +++ b/config/mongoid.yml @@ -6,7 +6,7 @@ common: &default_client mode: :<%= ENV['MONGOID_READ_MODE'] || 'primary' %> max_retries: <%= ENV['MONGOID_MAX_RETRIES'] || 1 %> retry_interval: <%= ENV['MONGOID_RETRY_INTERVAL'] || 0 %> - timeout: <%= ENV['MONGOID_TIMEOUT'] || 0.5 %> + connect_timeout: <%= ENV['MONGOID_CONNECT_TIMEOUT'] || 0.5 %> ssl: <%= ENV['MONGOID_USE_SSL'] || false %> auth_source: <%= ENV['MONGOID_AUTH_SOURCE'] || '' %> auth_mech: <%= ENV['MONGOID_AUTH_MECH'].nil? ? ':scram' : ENV['MONGOID_AUTH_MECH'] %>