summaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-10-15 17:22:31 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-10-15 17:22:31 -0500
commite5c1b2efb597bc7089e833bf570d8217c36f50c3 (patch)
tree5e9dd59db44d824e9df605154575eb3d1b4c79d1 /src/api
parentfd13b0b215a0763fa065038e7add3922059a332c (diff)
refactor: removed unused depsv0.1.0
Diffstat (limited to 'src/api')
-rw-r--r--src/api/services.rs4
-rw-r--r--src/api/sse.rs3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/api/services.rs b/src/api/services.rs
index aeca924..8c4860b 100644
--- a/src/api/services.rs
+++ b/src/api/services.rs
@@ -1,5 +1,3 @@
-use std::collections::HashMap;
-
use axum::{
extract::{Path, Query, State},
routing::get,
@@ -31,7 +29,7 @@ impl ServiceQuery {
pub async fn services(
Query(query): Query<ServiceQuery>,
State(state): State<AppState>,
-) -> Json<HashMap<String, Status>> {
+) -> Json<Vec<(String, Status)>> {
Json(
state
.statuses()
diff --git a/src/api/sse.rs b/src/api/sse.rs
index 5d913bb..4fe0bf4 100644
--- a/src/api/sse.rs
+++ b/src/api/sse.rs
@@ -9,8 +9,7 @@ use axum::{
routing::get,
Router,
};
-use futures::Stream;
-use tokio_stream::StreamExt;
+use futures::{Stream, StreamExt};
use crate::{AppState, Error};