mirror of https://github.com/Mai-with-u/MaiBot.git
Update normal_chat.py
parent
76f2054cbc
commit
4f3e653e1f
|
|
@ -304,7 +304,9 @@ class NormalChat:
|
||||||
|
|
||||||
semaphore = asyncio.Semaphore(5)
|
semaphore = asyncio.Semaphore(5)
|
||||||
|
|
||||||
async def process_and_acquire(msg_id, message, interest_value, is_mentioned):
|
async def process_and_acquire(
|
||||||
|
msg_id, message, interest_value, is_mentioned, semaphore=semaphore
|
||||||
|
):
|
||||||
"""处理单个兴趣消息并管理信号量"""
|
"""处理单个兴趣消息并管理信号量"""
|
||||||
async with semaphore:
|
async with semaphore:
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue