Skip to content

Commit e115a69

Browse files
committed
remove previous state for now
1 parent 7aeafbd commit e115a69

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

‎src/handlers/http/resource_check.rs‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,13 @@ pub fn spawn_resource_monitor(shutdown_rx: tokio::sync::oneshot::Receiver<()>) {
7373
resource_ok = false;
7474
}
7575
}
76-
let previous_state = SERVER_OK.load(std::sync::atomic::Ordering::SeqCst);
7776
SERVER_OK.store(resource_ok, std::sync::atomic::Ordering::SeqCst);
7877

7978
// Log state changes
80-
if previous_state != resource_ok {
81-
if resource_ok {
82-
info!("Resource utilization back to normal - requests will be accepted");
83-
} else {
84-
warn!("Resource utilization too high - requests will be rejected");
85-
}
79+
if resource_ok {
80+
info!("Resource utilization back to normal - requests will be accepted");
81+
} else {
82+
warn!("Resource utilization too high - requests will be rejected");
8683
}
8784
},
8885
_ = process_metrics_interval.tick() => {

0 commit comments

Comments
 (0)