implemented leaky bucket, made a script to run its dequeuing. formatted with black

This commit is contained in:
2023-08-11 18:43:36 +03:00
parent 32eddd3de6
commit 877c749f37
4 changed files with 92 additions and 24 deletions

View File

@@ -40,6 +40,7 @@ def before_request():
except algos.TooManyRequests:
return f.abort(429)
@application.route('/')
@application.route("/")
def home():
return '<!doctype html><title>Hello</title><h1>Hello</h1>'
return "<!doctype html><title>Hello</title><h1>Hello</h1>"