Update throttling.py

This commit is contained in:
Kostiantyn Kriuchkov 2020-08-19 14:00:37 +03:00 committed by GitHub
parent ecf3a1cf3c
commit 4facc9c0d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,6 @@ class ThrottlingMiddleware(BaseMiddleware):
self.prefix = key_prefix self.prefix = key_prefix
super(ThrottlingMiddleware, self).__init__() super(ThrottlingMiddleware, self).__init__()
# noinspection PyUnusedLocal
async def on_process_message(self, message: types.Message, data: dict): async def on_process_message(self, message: types.Message, data: dict):
handler = current_handler.get() handler = current_handler.get()
dispatcher = Dispatcher.get_current() dispatcher = Dispatcher.get_current()