use actix_web::{rt::System, web, App, HttpResponse, HttpServer, Responder};
use lemmy_api_common::context::LemmyContext;
use lemmy_utils::settings::structs::PrometheusConfig;
use actix_web::{rt::System, web, App, HttpResponse, HttpServer, Responder};
use lemmy_api_common::context::LemmyContext;
use lemmy_utils::settings::structs::PrometheusConfig;
.route("/metrics", web::get().to(metrics))
})
.bind((bind, port as u16))
.route("/metrics", web::get().to(metrics))
})
.bind((bind, port as u16))