feat: 减少上报企鹅物流的重试次数和等待时间 (#9527)

This commit is contained in:
Autumn Sound
2024-07-06 11:06:17 +08:00
committed by GitHub
parent e7b5693adc
commit a855e89811
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ void asst::ReportDataTask::report_to_penguin()
std::string key = key_ss.str();
Log.info("X-Penguin-Idempotency-Key:", key);
constexpr int DefaultBackoff = 10 * 1000; // 10s
constexpr int DefaultBackoff = 3 * 1000; // 3s
int backoff = DefaultBackoff;
auto penguin_success_cond = [](const cpr::Response& response) -> bool { return response.status_code == 200; };