Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit d0a8fd7

Browse files
ghassanmasmtyaka
authored andcommitted
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
1 parent ce71c39 commit d0a8fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/mongoid.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ common: &default_client
66
mode: :<%= ENV['MONGOID_READ_MODE'] || 'primary' %>
77
max_retries: <%= ENV['MONGOID_MAX_RETRIES'] || 1 %>
88
retry_interval: <%= ENV['MONGOID_RETRY_INTERVAL'] || 0 %>
9-
timeout: <%= ENV['MONGOID_TIMEOUT'] || 0.5 %>
9+
connect_timeout: <%= ENV['MONGOID_CONNECT_TIMEOUT'] || 0.5 %>
1010
ssl: <%= ENV['MONGOID_USE_SSL'] || false %>
1111
auth_source: <%= ENV['MONGOID_AUTH_SOURCE'] || '' %>
1212
auth_mech: <%= ENV['MONGOID_AUTH_MECH'].nil? ? ':scram' : ENV['MONGOID_AUTH_MECH'] %>

0 commit comments

Comments
 (0)