mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-07 00:13:33 +00:00
delete unused manager nodelay
This commit is contained in:
@@ -34,7 +34,6 @@ pub async fn run(config: Config) -> io::Result<()> {
|
||||
|
||||
let mut manager = Manager::new(config.manager.expect("missing manager config"));
|
||||
manager.set_mode(config.mode);
|
||||
manager.set_nodelay(config.no_delay);
|
||||
|
||||
#[cfg(feature = "trust-dns")]
|
||||
if config.dns.is_some() || crate::hint_support_default_system_resolver() {
|
||||
|
||||
@@ -57,7 +57,6 @@ pub struct Manager {
|
||||
accept_opts: AcceptOpts,
|
||||
udp_expiry_duration: Option<Duration>,
|
||||
udp_capacity: Option<usize>,
|
||||
nodelay: bool,
|
||||
acl: Option<Arc<AccessControl>>,
|
||||
}
|
||||
|
||||
@@ -78,7 +77,6 @@ impl Manager {
|
||||
accept_opts: AcceptOpts::default(),
|
||||
udp_expiry_duration: None,
|
||||
udp_capacity: None,
|
||||
nodelay: false,
|
||||
acl: None,
|
||||
}
|
||||
}
|
||||
@@ -113,11 +111,6 @@ impl Manager {
|
||||
&self.svr_cfg
|
||||
}
|
||||
|
||||
/// Set `TCP_NODELAY` for TCP relays
|
||||
pub fn set_nodelay(&mut self, nodelay: bool) {
|
||||
self.nodelay = nodelay;
|
||||
}
|
||||
|
||||
/// Get customized DNS resolver
|
||||
pub fn set_dns_resolver(&mut self, resolver: Arc<DnsResolver>) {
|
||||
let context = Arc::get_mut(&mut self.context).expect("cannot set DNS resolver on a shared context");
|
||||
|
||||
Reference in New Issue
Block a user