From f1a7cbc0f0d7dba31e0c7856ed3d1039db94c397 Mon Sep 17 00:00:00 2001 From: Cameron Cordes Date: Sat, 1 May 2021 00:01:17 -0400 Subject: [PATCH] Use IntGauge for media counts --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index d52700c..8235d46 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ use actix_web_prom::PrometheusMetrics; use database::{DbError, DbErrorKind, FavoriteDao, SqliteFavoriteDao, SqliteUserDao, UserDao}; use futures::stream::StreamExt; use lazy_static::lazy_static; -use prometheus::{self, Gauge}; +use prometheus::{self, IntGauge}; use std::path::{Path, PathBuf}; use std::sync::mpsc::channel; use std::sync::Arc; @@ -43,12 +43,12 @@ mod files; mod video; lazy_static! { - static ref IMAGE_GAUGE: Gauge = Gauge::new( + static ref IMAGE_GAUGE: IntGauge = IntGauge::new( "imageserver_image_total", "Count of the images on the server" ) .unwrap(); - static ref VIDEO_GAUGE: Gauge = Gauge::new( + static ref VIDEO_GAUGE: IntGauge = IntGauge::new( "imageserver_video_total", "Count of the videos on the server" )