mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 06:29:46 +08:00
🎨 Clean code
This commit is contained in:
parent
147e635782
commit
4749d0fca5
@ -716,11 +716,12 @@ func planSyncAfter(d time.Duration) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func isProviderOnline(byHand bool) (ret bool) {
|
func isProviderOnline(byHand bool) (ret bool) {
|
||||||
checkURL := util.GetCloudSyncServer()
|
var checkURL string
|
||||||
skipTlsVerify := false
|
skipTlsVerify := false
|
||||||
timeout := 3000
|
timeout := 3000
|
||||||
switch Conf.Sync.Provider {
|
switch Conf.Sync.Provider {
|
||||||
case conf.ProviderSiYuan:
|
case conf.ProviderSiYuan:
|
||||||
|
checkURL = util.GetCloudSyncServer()
|
||||||
case conf.ProviderS3:
|
case conf.ProviderS3:
|
||||||
checkURL = Conf.Sync.S3.Endpoint
|
checkURL = Conf.Sync.S3.Endpoint
|
||||||
skipTlsVerify = Conf.Sync.S3.SkipTlsVerify
|
skipTlsVerify = Conf.Sync.S3.SkipTlsVerify
|
||||||
|
Loading…
Reference in New Issue
Block a user