Skip to content

Commit 196a2a0

Browse files
remove unused
1 parent 8716140 commit 196a2a0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/prism/home/mod.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,12 @@ use crate::{
3636
},
3737
parseable::PARSEABLE,
3838
rbac::{map::SessionKey, role::Action, Users},
39-
stats::Stats,
4039
storage::{ObjectStorageError, ObjectStoreFormat, STREAM_ROOT_DIRECTORY},
4140
users::{dashboards::DASHBOARDS, filters::FILTERS},
4241
};
4342

4443
type StreamMetadataResponse = Result<(String, Vec<ObjectStoreFormat>, DataSetType), PrismHomeError>;
4544

46-
#[derive(Debug, Serialize, Default)]
47-
struct StreamStats {
48-
// stream_count: u32,
49-
// log_source_count: u32,
50-
stats_summary: Stats,
51-
}
52-
5345
#[derive(Debug, Serialize, Default)]
5446
struct DatedStats {
5547
date: String,
@@ -146,14 +138,10 @@ pub async fn generate_home_response(key: &SessionKey) -> Result<HomeResponse, Pr
146138
futures::future::join_all(stats_futures).await;
147139

148140
let mut stream_details = Vec::new();
149-
let mut summary = StreamStats::default();
150141

151142
for result in stats_results {
152143
match result {
153144
Ok(dated_stats) => {
154-
summary.stats_summary.events += dated_stats.events;
155-
summary.stats_summary.ingestion += dated_stats.ingestion_size;
156-
summary.stats_summary.storage += dated_stats.storage_size;
157145
stream_details.push(dated_stats);
158146
}
159147
Err(e) => {

0 commit comments

Comments
 (0)