Permalink
Browse files

self is not needed

  • Loading branch information...
1 parent 874f4d6 commit 37f0c7ec91b2d13a33ed5e02664217dfbcce2c96 @haarts haarts committed with Chris Gaffney Apr 2, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/starling.rb
View
@@ -124,10 +124,10 @@ def flush(queue)
def get_server_for_key(key)
raise ArgumentError, "illegal character in key #{key.inspect}" if key =~ /\s/
raise ArgumentError, "key too long #{key.inspect}" if key.length > 250
- raise MemCacheError, "No servers available" if @servers.empty?
+ raise MemCacheError, "No servers available" if servers.empty?
# Ignores server weights, oh well
- srvs = self.servers.dup
+ srvs = servers.dup
srvs.size.times do |try|
n = rand(srvs.size)
server = srvs[n]

0 comments on commit 37f0c7e

Please sign in to comment.