Skip to content
Browse files

Lower the default further, since all non-overridden methods should be…

… safely and rapidly retryable.
  • Loading branch information...
1 parent ddc4e47 commit 47b7f0dda60b2152c1251de980424df4523709df @stuhood stuhood committed May 2, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/gizzard/nameserver.rb
View
5 lib/gizzard/nameserver.rb
@@ -178,8 +178,9 @@ def respond_to?(method)
def method_missing(method, *args, &block)
if client.respond_to?(method)
- # operations without specialized backoff use a backoff of 1
- with_retry(1) { random_client.send(method, *args, &block) }
+ # operations without specialized backoff use a backoff which assumes cheap, easily
+ # retryable operations: if this isn't the case, methods should specialize as above
+ with_retry(0.1) { random_client.send(method, *args, &block) }
else
super
end

1 comment on commit 47b7f0d

@jeremycole

Sounds good.

Please sign in to comment.
Something went wrong with that request. Please try again.