mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
fix: add health metric to drainer (#2217)
This commit is contained in:
@ -42,6 +42,7 @@ pub async fn start_drainer(
|
||||
|
||||
let active_tasks = Arc::new(atomic::AtomicU64::new(0));
|
||||
'event: loop {
|
||||
metrics::DRAINER_HEALTH.add(&metrics::CONTEXT, 1, &[]);
|
||||
match rx.try_recv() {
|
||||
Err(mpsc::error::TryRecvError::Empty) => {
|
||||
if utils::is_stream_available(stream_index, store.clone()).await {
|
||||
|
||||
Reference in New Issue
Block a user