From 6b744eb363c3498c9df012d18cd409feb9ae9888 Mon Sep 17 00:00:00 2001 From: Christopher Chang Date: Wed, 30 Jul 2014 17:13:49 -0700 Subject: [PATCH] Lower refresh_interval default from 300 to 10 sec --- lib/moped/cluster.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/moped/cluster.rb b/lib/moped/cluster.rb index 2bb17cb..6c703a4 100644 --- a/lib/moped/cluster.rb +++ b/lib/moped/cluster.rb @@ -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. # @@ -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) #