mirror of
https://github.com/yshtcn/ServerChanPush2TelegramBot.git
synced 2026-01-28 17:42:01 +08:00
- TestPage=4降速为3条/次,成功发送时降低为附带发送2条待发送列表,以提高响应速度。
This commit is contained in:
@@ -315,7 +315,7 @@ def index():
|
|||||||
}), 200
|
}), 200
|
||||||
|
|
||||||
# 调用批量发送逻辑,每次最多发送10条
|
# 调用批量发送逻辑,每次最多发送10条
|
||||||
result = send_messages_in_batches(batch_size=10)
|
result = send_messages_in_batches(batch_size=3)
|
||||||
|
|
||||||
# 读取剩余待发送消息数量
|
# 读取剩余待发送消息数量
|
||||||
remaining_messages = read_pending_messages()
|
remaining_messages = read_pending_messages()
|
||||||
@@ -354,7 +354,7 @@ def index():
|
|||||||
}), 200
|
}), 200
|
||||||
|
|
||||||
# 调用批量发送逻辑,每次最多发送10条
|
# 调用批量发送逻辑,每次最多发送10条
|
||||||
result = send_messages_in_batches(batch_size=3)
|
result = send_messages_in_batches(batch_size=2)
|
||||||
|
|
||||||
# 读取剩余待发送消息数量
|
# 读取剩余待发送消息数量
|
||||||
remaining_messages = read_pending_messages()
|
remaining_messages = read_pending_messages()
|
||||||
|
|||||||
Reference in New Issue
Block a user