hunter/main: enable trust-dns
seems to use even more memory but perhaps we're no longer bound by worker threads?
This commit is contained in:
parent
2afcd46a99
commit
fed37ce56f
|
@ -6,7 +6,7 @@ edition = "2021"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
tokio = { version = "1", features = ["full"] }
|
tokio = { version = "1", features = ["full"] }
|
||||||
reqwest = { version = "0.11", features = ["json", "deflate", "gzip"] }
|
reqwest = { version = "0.11", features = ["json", "deflate", "gzip", "trust-dns"] }
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
# serde_yaml = "0.9"
|
# serde_yaml = "0.9"
|
||||||
chrono = "0.4"
|
chrono = "0.4"
|
||||||
|
|
|
@ -60,6 +60,7 @@ async fn main() {
|
||||||
))
|
))
|
||||||
.deflate(true)
|
.deflate(true)
|
||||||
.gzip(true)
|
.gzip(true)
|
||||||
|
.trust_dns(true)
|
||||||
.build()
|
.build()
|
||||||
.expect("reqwest::Client");
|
.expect("reqwest::Client");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user