Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Mar 14, 2024
1 parent 6aff4c6 commit 294ed1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ use tokio::{
};
use trust_dns_proto::op::{Message, Query};
pub use {
::tokio_util::sync::CancellationToken,
api::{dns2socks_start, dns2socks_stop},
config::{ArgVerbosity, Config},
dump_logger::dns2socks_set_log_callback,
};

pub type BoxError = Box<dyn std::error::Error + Send + Sync + 'static>;

const MAX_BUFFER_SIZE: usize = 4096;

pub async fn main_entry(config: Config, shutdown_token: tokio_util::sync::CancellationToken) -> Result<()> {
Expand Down

0 comments on commit 294ed1d

Please sign in to comment.