Skip to content

Commit

Permalink
fix name errors in handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Podshumok committed Nov 2, 2016
1 parent a47a790 commit 575a7a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aioleakybucket/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ def handler(simtime_msec, req, limits):

if consts.DECLINED == rc:
return rc, None
r.limit_set = True
req.limit_set = True

if (busy == rc) or (error == rc):
if busy == rc:
if (consts.BUSY == rc) or (consts.ERROR == rc):
if consts.BUSY == rc:
logger.info(
'limiting calls, excess: %d.%03d by zone \"%s\"',
excess / 1000, excess % 1000, limit.zone,
Expand Down

0 comments on commit 575a7a4

Please sign in to comment.