Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
the2pizza committed Jan 5, 2025
1 parent 982fec4 commit e00e3dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::state::{
stats::StatType,
user::{User, UserStatus},
};
use crate::utils::send_to_carbon;

use crate::xray_op::{
actions::create_users, actions::remove_user, client::XrayClients, stats, stats::Prefix, vless,
vmess,
Expand Down
3 changes: 3 additions & 0 deletions src/metrics/metrics.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
use log::{debug, error, warn};
use serde::{Deserialize, Serialize};
use std::fmt;
use std::io;
use std::sync::Arc;
use tokio::sync::Mutex;
use tokio::{io::AsyncWriteExt, net::TcpStream};
use uuid::Uuid;

use super::bandwidth::bandwidth_metrics;
Expand Down
5 changes: 1 addition & 4 deletions src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
use log::debug;
use log::info;
use std::{
io,
time::Instant,
time::{SystemTime, UNIX_EPOCH},
};

use chrono::{TimeZone, Utc};
use log::{error, warn, LevelFilter};
use tokio::{io::AsyncWriteExt, net::TcpStream};
use log::LevelFilter;

pub async fn measure_time<T, F>(task: F, name: String) -> T
where
Expand Down

0 comments on commit e00e3dc

Please sign in to comment.