Skip to content

Commit

Permalink
chore: remove unused use, make ratatui dashboard table labels consi…
Browse files Browse the repository at this point in the history
…stent with web dashboard
  • Loading branch information
mcharytoniuk committed Dec 7, 2024
1 parent 8cce384 commit 77b8527
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ time = "0.3.36"
chrono = "0.4.38"

[features]
default = ["statsd_reporter"]
default = ["statsd_reporter", "ratatui_dashboard"]
ratatui_dashboard = ["dep:crossterm", "dep:ratatui"]
statsd_reporter = ["dep:cadence"]
web_dashboard = ["dep:askama", "dep:askama_actix", "dep:mime_guess", "dep:rust-embed"]
Expand Down
7 changes: 2 additions & 5 deletions src/cmd/dashboard/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ use crate::balancer::upstream_peer::UpstreamPeer;
use crate::balancer::upstream_peer_pool::UpstreamPeerPool;
use crate::errors::result::Result;
use chrono::{DateTime, Utc};
use crossterm::execute;
use crossterm::terminal::{Clear, ClearType};
use io::Result as ioResult;
use ratatui::layout::{Constraint, Layout, Margin, Rect};
use ratatui::style::{Modifier, Style, Stylize};
Expand All @@ -16,7 +14,6 @@ use ratatui::widgets::{
ScrollbarState, Table, TableState,
};
use ratatui::Frame;
use std::io::stdout;
use std::{
io,
time::{SystemTime, UNIX_EPOCH},
Expand Down Expand Up @@ -155,8 +152,8 @@ impl App {

let header = [
"Name",
"Issue",
"Llamacpp address",
"Issues",
"Llama.cpp address",
"Last update",
"Idle slots",
"Processing slots",
Expand Down

0 comments on commit 77b8527

Please sign in to comment.