From e6946ef98968e2a316f89f03e273ff8b74364c78 Mon Sep 17 00:00:00 2001 From: lanvent Date: Fri, 7 Apr 2023 16:03:59 +0800 Subject: [PATCH] modify default value of concurrency_in_session --- channel/chat_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel/chat_channel.py b/channel/chat_channel.py index a7f8694..1fcc619 100644 --- a/channel/chat_channel.py +++ b/channel/chat_channel.py @@ -252,7 +252,7 @@ class ChatChannel(Channel): session_id = context['session_id'] with self.lock: if session_id not in self.sessions: - self.sessions[session_id] = [Dequeue(), threading.BoundedSemaphore(conf().get("concurrency_in_session", 1))] + self.sessions[session_id] = [Dequeue(), threading.BoundedSemaphore(conf().get("concurrency_in_session", 4))] if context.type == ContextType.TEXT and context.content.startswith("#"): self.sessions[session_id][0].putleft(context) # 优先处理管理命令 else: