Skip to content

Commit

Permalink
fix: set the correct config name connect_timout mongoid
Browse files Browse the repository at this point in the history
  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
  • Loading branch information
ghassanmas committed Sep 10, 2024
1 parent 2cfcd99 commit e9ea401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/mongoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'] %>
Expand Down

0 comments on commit e9ea401

Please sign in to comment.