mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-28 00:14:21 +00:00
添加线程控制类,修改main结构,修改启动流程
This commit is contained in:
+3
-1
@@ -208,7 +208,9 @@ alter_tip_message = '出错了,请稍后再试'
|
||||
# 机器人线程池大小
|
||||
# 该参数决定机器人可以同时处理几个人的消息,超出线程池数量的请求会被阻塞,不会被丢弃
|
||||
# 如果你不清楚该参数的意义,请不要更改
|
||||
pool_num = 10
|
||||
sys_pool_num = 8
|
||||
admin_pool_num = 2
|
||||
user_pool_num = 3
|
||||
|
||||
# 每个会话的过期时间,单位为秒
|
||||
# 默认值20分钟
|
||||
|
||||
Reference in New Issue
Block a user