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:
2025-01-27 15:37:07 +00:00
parent e4cc3df6b5
commit 5f3569e37e
+1 -1
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)
self, loader=jinja2.FileSystemLoader(self.template_path),async_enabled=True
)
def run(self, *args, **kwargs):