Skip to content

Commit

Permalink
use single task to report bunch of metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
sivukhin committed Aug 15, 2024
1 parent 4ebff7f commit f6fe40d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions libsql-server/src/http/admin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,7 @@ where
.absolute(metrics.io_driver_ready_count() as u64);
crate::metrics::TOKIO_RUNTIME_REMOTE_SCHEDULE_COUNT
.absolute(metrics.remote_schedule_count() as u64);
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
}
});

tokio::task::spawn(async move {
loop {
crate::metrics::SERVER_COUNT.set(1.0);
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
}
Expand Down

0 comments on commit f6fe40d

Please sign in to comment.