fix(dispatch): bump DNS timeout

This commit is contained in:
alyssa 2024-08-26 20:51:01 +09:00
parent a128fd5492
commit bf3b76f9a8

View file

@ -29,7 +29,7 @@ async fn main() -> anyhow::Result<()> {
info!("hello world"); info!("hello world");
let address = std::env::var("DNS_UPSTREAM").unwrap().parse().unwrap(); let address = std::env::var("DNS_UPSTREAM").unwrap().parse().unwrap();
let stream = UdpClientStream::<UdpSocket>::with_timeout(address, Duration::from_secs(1)); let stream = UdpClientStream::<UdpSocket>::with_timeout(address, Duration::from_secs(3));
let (client, bg) = AsyncClient::connect(stream).await?; let (client, bg) = AsyncClient::connect(stream).await?;
tokio::spawn(bg); tokio::spawn(bg);