mirror of
https://github.com/yshtcn/ServerChanPush2TelegramBot.git
synced 2025-12-11 16:50:22 +08:00
- TestPage=4降速为3条/次,成功发送时降低为附带发送2条待发送列表,以提高响应速度。
This commit is contained in:
parent
7ea9f05271
commit
098958b1f9
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user