mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
5288f0c631
commit
7160aa8b3a
1 changed files with 1 additions and 2 deletions
|
|
@ -121,7 +121,6 @@ func isOnline(checkURL string, skipTlsVerify bool, timeout int) (ret bool) {
|
||||||
|
|
||||||
for i := 0; i < 2; i++ {
|
for i := 0; i < 2; i++ {
|
||||||
resp, err := c.R().Get(checkURL)
|
resp, err := c.R().Get(checkURL)
|
||||||
|
|
||||||
if resp.GetHeader("Location") != "" {
|
if resp.GetHeader("Location") != "" {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
@ -140,8 +139,8 @@ func isOnline(checkURL string, skipTlsVerify bool, timeout int) (ret bool) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(1 * time.Second)
|
|
||||||
logging.LogWarnf("check url [%s] is online failed: %s", checkURL, err)
|
logging.LogWarnf("check url [%s] is online failed: %s", checkURL, err)
|
||||||
|
time.Sleep(1 * time.Second)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue