mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-04 01:24:09 +02:00
add proxy option
This commit is contained in:
parent
0843863a40
commit
6239b0cab7
9 changed files with 742 additions and 29 deletions
|
|
@ -155,14 +155,14 @@ impl PhpVersion {
|
|||
ip.ok_or(Report::msg("Container not running"))?
|
||||
))
|
||||
.into_diagnostic()?;
|
||||
timeout(Duration::from_secs(5), async {
|
||||
timeout(Duration::from_secs(15), async {
|
||||
while !client.get(url.clone()).send().await.is_ok() {
|
||||
sleep(Duration::from_millis(100)).await
|
||||
}
|
||||
})
|
||||
.await
|
||||
.into_diagnostic()
|
||||
.wrap_err("Timeout after 5 seconds")
|
||||
.wrap_err("Timeout after 15 seconds")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue