chore: remove unused imports
This commit is contained in:
parent
0c68399210
commit
a6b2127b0c
4 changed files with 9 additions and 15 deletions
|
@ -1,9 +1,9 @@
|
||||||
use std::{
|
use std::{
|
||||||
error::Error,
|
error::Error,
|
||||||
net::{IpAddr, SocketAddr},
|
net::IpAddr,
|
||||||
};
|
};
|
||||||
|
|
||||||
use tokio_postgres::{Client, Socket, tls::MakeTlsConnect};
|
use tokio_postgres::Client;
|
||||||
|
|
||||||
const ENDPOINT_TABLE: &str = "endpoints";
|
const ENDPOINT_TABLE: &str = "endpoints";
|
||||||
const HOSTS_RELATION_TABLE: &str = "hosts";
|
const HOSTS_RELATION_TABLE: &str = "hosts";
|
||||||
|
|
|
@ -5,16 +5,14 @@ mod services;
|
||||||
|
|
||||||
use std::{env, sync::Arc};
|
use std::{env, sync::Arc};
|
||||||
|
|
||||||
use bcrypt::{DEFAULT_COST, bcrypt};
|
use bcrypt::DEFAULT_COST;
|
||||||
use config::Config;
|
use config::Config;
|
||||||
use db::BoxyDatabase;
|
use db::BoxyDatabase;
|
||||||
use log::{error, info};
|
use log::{error, info};
|
||||||
use nanoid::nanoid;
|
|
||||||
use ring::rand::SystemRandom;
|
|
||||||
use server::Server;
|
use server::Server;
|
||||||
use services::{api::ApiService, controller::ControllerService};
|
use services::{api::ApiService, controller::ControllerService};
|
||||||
use tokio::{fs::File, io::AsyncReadExt, sync::Mutex};
|
use tokio::sync::Mutex;
|
||||||
use tokio_postgres::{NoTls, tls::NoTlsError};
|
use tokio_postgres::NoTls;
|
||||||
|
|
||||||
const VERSION: &str = "v0.1a";
|
const VERSION: &str = "v0.1a";
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
use std::{net::IpAddr, pin::Pin, sync::Arc};
|
use std::{net::IpAddr, pin::Pin, sync::Arc};
|
||||||
|
|
||||||
use base64::{Engine, prelude::BASE64_STANDARD};
|
use base64::{Engine, prelude::BASE64_STANDARD};
|
||||||
use bcrypt::bcrypt;
|
|
||||||
use http_body_util::{BodyExt, Full};
|
use http_body_util::{BodyExt, Full};
|
||||||
use hyper::{
|
use hyper::{
|
||||||
Method, Request, Response, StatusCode,
|
Method, Request, Response, StatusCode,
|
||||||
body::{Bytes, Incoming},
|
body::{Bytes, Incoming},
|
||||||
service::Service,
|
service::Service,
|
||||||
};
|
};
|
||||||
use log::{debug, info, warn};
|
use log::{debug, warn};
|
||||||
use tokio::{net::TcpStream, sync::Mutex};
|
use tokio::{net::TcpStream, sync::Mutex};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|
|
@ -1,18 +1,15 @@
|
||||||
use std::{pin::Pin, sync::Arc};
|
use std::{pin::Pin, sync::Arc};
|
||||||
|
|
||||||
use http_body_util::Full;
|
|
||||||
use hyper::{
|
use hyper::{
|
||||||
Request, Response,
|
Request,
|
||||||
body::{Bytes, Incoming},
|
body::Incoming,
|
||||||
service::Service,
|
service::Service,
|
||||||
};
|
};
|
||||||
use log::error;
|
|
||||||
use tokio::sync::Mutex;
|
use tokio::sync::Mutex;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
config::{self, Client, Config, Host},
|
|
||||||
db::{BoxyDatabase, Endpoint},
|
db::{BoxyDatabase, Endpoint},
|
||||||
server::{GeneralBody, GeneralResponse, TcpIntercept},
|
server::{GeneralResponse, TcpIntercept},
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::proxy::ProxyService;
|
use super::proxy::ProxyService;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue