Commit 9ab23e31 authored by Hiro's avatar Hiro 🏄
Browse files

Fix too many requests check

parent 64a9d491
......@@ -240,7 +240,7 @@ class EmailParser(object):
"Found request for {}.".format(request['command']),
system="email parser"
)
check = yield self.too_many_requests(request['id'], hid, request['service'], email_requests_limit)
check = self.too_many_requests(request['id'], hid, request['service'], email_requests_limit)
if check:
log.msg(
"Discarded. Too many requests from {}.".format(
......@@ -248,7 +248,7 @@ class EmailParser(object):
), system="email parser"
)
else:
conn.new_request(
yield conn.new_request(
id=request['id'],
command=request['command'],
platform=request['platform'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment