From 1d0f96a9665d4ab45866e0022f5a3c61ee714202 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 17 Feb 2020 23:01:15 -0800 Subject: [PATCH] Fix typo succesful -> successful. --- voussoirkit/ratelimiter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/voussoirkit/ratelimiter.py b/voussoirkit/ratelimiter.py index a2ccc35..0675632 100644 --- a/voussoirkit/ratelimiter.py +++ b/voussoirkit/ratelimiter.py @@ -51,16 +51,16 @@ class Ratelimiter: if self.balance >= cost: self.balance -= cost - succesful = True + successful = True else: if self.mode == 'reject': - succesful = False + successful = False else: deficit = cost - self.balance time_needed = deficit / self.gain_rate time.sleep(time_needed) self.balance = 0 - succesful = True + successful = True self.last_operation = time.time() - return succesful + return successful