PLC_API_HOST/PLC_API_IP
authorS.Çağlar Onur <caglar@cs.princeton.edu>
Tue, 9 Nov 2010 21:06:12 +0000 (16:06 -0500)
committerS.Çağlar Onur <caglar@cs.princeton.edu>
Tue, 9 Nov 2010 21:06:12 +0000 (16:06 -0500)
aspects/ratelimitaspects.py

index 67f0682..c90758b 100644 (file)
@@ -25,7 +25,7 @@ class BaseRateLimit(object):
         api_method_name = wobj.name
         api_method_source = wobj.source
 
-        if api_method_source == None or api_method_source[0] == self.config.PLC_API_HOST:
+        if api_method_source == None or api_method_source[0] == self.config.PLC_API_IP:
             return
 
         mc = memcache.Client(['%s:11211'] % self.config.PLC_API_HOST)