chore: set the request timeout to 5 seconds

This commit is contained in:
huzibaca 2024-11-22 14:15:31 +08:00
parent 397e6a9d57
commit 4feef53cb0
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -45,6 +45,7 @@ impl WebDavClient {
.set_agent(
reqwest::Client::builder()
.danger_accept_invalid_certs(true)
.timeout(std::time::Duration::from_secs(5))
.build()
.unwrap(),
)