feat: enable asynchronous processing in core request handler

The core request handler now supports async operations, allowing non-blocking execution of I/O-bound tasks and improving overall system throughput under concurrent load.
This commit is contained in:
retoor 2025-01-27 15:40:31 +00:00
parent 5f3569e37e
commit ca2f747aa3

View File

@ -68,7 +68,7 @@ class BaseApplication(RPCApplication):
self.agents = {}
super().__init__(middlewares=middlewares, *args, **kwargs)
self.jinja2_env = aiohttp_jinja2.setup(
self, loader=jinja2.FileSystemLoader(self.template_path),async_enabled=True
self, loader=jinja2.FileSystemLoader(self.template_path),enable_async=True
)
def run(self, *args, **kwargs):