mirror of
https://gitlab.com/octospacc/TelegramIndex-Fork.git
synced 2025-02-16 11:31:44 +01:00
fix for older python versions
This commit is contained in:
parent
df65e3ba49
commit
b2539699fa
@ -1,3 +1,4 @@
|
||||
import asyncio
|
||||
import pathlib
|
||||
import logging
|
||||
|
||||
@ -46,6 +47,8 @@ class Indexer:
|
||||
)
|
||||
|
||||
middlewares.append(middleware_factory())
|
||||
self.loop = asyncio.get_event_loop()
|
||||
|
||||
self.server = web.Application(middlewares=middlewares)
|
||||
|
||||
self.server.on_startup.append(self.startup)
|
||||
@ -71,4 +74,4 @@ class Indexer:
|
||||
log.debug("telegram client disconnected!")
|
||||
|
||||
def run(self):
|
||||
web.run_app(self.server, host=host, port=port)
|
||||
web.run_app(self.server, host=host, port=port, loop=self.loop)
|
||||
|
Loading…
x
Reference in New Issue
Block a user