Skip to content

Commit fe4a81b

Browse files
committed
restore oracle health metric;
1 parent 94a5f77 commit fe4a81b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ fn update_oracle_health(oracle_health: &OracleHealth) {
247247
HealthStatus::Ok => 1,
248248
HealthStatus::Down => 0,
249249
};
250-
ORACLE_IS_HEALTHY.set(0);
250+
ORACLE_IS_HEALTHY.set(health);
251251
}
252252

253253
fn update_reward_tokens_in_buyback_box(oracle_pool: Arc<OraclePool>) {

0 commit comments

Comments
 (0)