mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 18:20:26 +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) {
|
||||
checkURL := util.GetCloudSyncServer()
|
||||
var checkURL string
|
||||
skipTlsVerify := false
|
||||
timeout := 3000
|
||||
switch Conf.Sync.Provider {
|
||||
case conf.ProviderSiYuan:
|
||||
checkURL = util.GetCloudSyncServer()
|
||||
case conf.ProviderS3:
|
||||
checkURL = Conf.Sync.S3.Endpoint
|
||||
skipTlsVerify = Conf.Sync.S3.SkipTlsVerify
|
||||
|
Loading…
Reference in New Issue
Block a user