We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e89c6 commit a5fd8b6Copy full SHA for a5fd8b6
server/src/utils.rs
@@ -137,7 +137,7 @@ pub mod uuid {
137
138
pub mod update {
139
use crate::banner::version::current;
140
- use std::path::Path;
+ use std::{path::Path, time::Duration};
141
142
use anyhow::anyhow;
143
use chrono::{DateTime, Utc};
@@ -168,7 +168,10 @@ pub mod update {
168
}
169
170
pub fn get_latest() -> Result<LatestRelease, anyhow::Error> {
171
- let agent = ureq::builder().user_agent(user_agent().as_str()).build();
+ let agent = ureq::builder()
172
+ .user_agent(user_agent().as_str())
173
+ .timeout(Duration::from_secs(8))
174
+ .build();
175
176
let json: serde_json::Value = agent
177
.get("https://download.parseable.io/latest-version")
0 commit comments