mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(dispatch): bump DNS timeout
This commit is contained in:
parent
a128fd5492
commit
bf3b76f9a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue