From 294ed1d9b396c035ec4c62063c62a0ed7780d6e5 Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Thu, 14 Mar 2024 15:45:14 +0800 Subject: [PATCH] minor changes --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 7e8fb78..88b136f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; - const MAX_BUFFER_SIZE: usize = 4096; pub async fn main_entry(config: Config, shutdown_token: tokio_util::sync::CancellationToken) -> Result<()> {