chore: remove unused imports

This commit is contained in:
hexlocation 2025-07-29 12:35:23 +02:00
parent 0c68399210
commit a6b2127b0c
4 changed files with 9 additions and 15 deletions

View file

@ -1,9 +1,9 @@
use std::{
error::Error,
net::{IpAddr, SocketAddr},
net::IpAddr,
};
use tokio_postgres::{Client, Socket, tls::MakeTlsConnect};
use tokio_postgres::Client;
const ENDPOINT_TABLE: &str = "endpoints";
const HOSTS_RELATION_TABLE: &str = "hosts";

View file

@ -5,16 +5,14 @@ mod services;
use std::{env, sync::Arc};
use bcrypt::{DEFAULT_COST, bcrypt};
use bcrypt::DEFAULT_COST;
use config::Config;
use db::BoxyDatabase;
use log::{error, info};
use nanoid::nanoid;
use ring::rand::SystemRandom;
use server::Server;
use services::{api::ApiService, controller::ControllerService};
use tokio::{fs::File, io::AsyncReadExt, sync::Mutex};
use tokio_postgres::{NoTls, tls::NoTlsError};
use tokio::sync::Mutex;
use tokio_postgres::NoTls;
const VERSION: &str = "v0.1a";

View file

@ -1,14 +1,13 @@
use std::{net::IpAddr, pin::Pin, sync::Arc};
use base64::{Engine, prelude::BASE64_STANDARD};
use bcrypt::bcrypt;
use http_body_util::{BodyExt, Full};
use hyper::{
Method, Request, Response, StatusCode,
body::{Bytes, Incoming},
service::Service,
};
use log::{debug, info, warn};
use log::{debug, warn};
use tokio::{net::TcpStream, sync::Mutex};
use crate::{

View file

@ -1,18 +1,15 @@
use std::{pin::Pin, sync::Arc};
use http_body_util::Full;
use hyper::{
Request, Response,
body::{Bytes, Incoming},
Request,
body::Incoming,
service::Service,
};
use log::error;
use tokio::sync::Mutex;
use crate::{
config::{self, Client, Config, Host},
db::{BoxyDatabase, Endpoint},
server::{GeneralBody, GeneralResponse, TcpIntercept},
server::{GeneralResponse, TcpIntercept},
};
use super::proxy::ProxyService;