Skip to content

Commit 1a83e0e

Browse files
committed
fix(local): check_update warn only if fail_rate > 0.8
1 parent 03e9e95 commit 1a83e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/shadowsocks-service/src/local/loadbalancing/ping_balancer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ impl PingChecker {
829829
Err(..) => server_score.push_score_fetch_statistic(Score::Errored).await,
830830
};
831831

832-
if stat_data.fail_rate > 0.5 {
832+
if stat_data.fail_rate > 0.8 {
833833
warn!(
834834
"balancer: checked & updated remote {} server {} (score: {}), {:?}",
835835
self.server_type,

0 commit comments

Comments
 (0)