Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Lower refresh_interval default from 300 to 10 sec #304

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/moped/cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Cluster
# The default interval that a node should be refreshed in.
#
# @since 2.0.0
REFRESH_INTERVAL = 300
REFRESH_INTERVAL = 10

# The default time to wait to retry an operation.
#
Expand Down Expand Up @@ -94,7 +94,7 @@ def down_interval
# @option options :down_interval number of seconds to wait before attempting
# to reconnect to a down node. (30)
# @option options :refresh_interval number of seconds to cache information
# about a node. (300)
# about a node. (10)
# @option options [ Integer ] :timeout The time in seconds to wait for an
# operation to timeout. (5)
#
Expand Down