- TestPage=4降速为3条/次,成功发送时降低为附带发送2条待发送列表,以提高响应速度。

This commit is contained in:
yshtcn 2024-11-24 15:16:12 +08:00
parent 7ea9f05271
commit 098958b1f9

View File

@ -315,7 +315,7 @@ def index():
}), 200
# 调用批量发送逻辑每次最多发送10条
result = send_messages_in_batches(batch_size=10)
result = send_messages_in_batches(batch_size=3)
# 读取剩余待发送消息数量
remaining_messages = read_pending_messages()
@ -354,7 +354,7 @@ def index():
}), 200
# 调用批量发送逻辑每次最多发送10条
result = send_messages_in_batches(batch_size=3)
result = send_messages_in_batches(batch_size=2)
# 读取剩余待发送消息数量
remaining_messages = read_pending_messages()