Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Sep 16, 2024
1 parent 21ec35b commit c1e3d04
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkg/ntp/ntp.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ var ErrNoAvailableServer = errors.New("无可用的 NTP 服务器")

var defaultAddresses = []string{
//"ntp.ntsc.ac.cn", // 中科院国家授时中心的服务器很快,但是多刷几次就会被封
"ntp.aliyun.com", // 阿里云
"ntp1.aliyun.com", // 阿里云2
"ntp.tencent.com", // 腾讯云
"time.windows.com", // Windows
"time.apple.com", // Apple
"time.cloudflare.com", // Cloudflare
"ntp.aliyun.com", // 阿里云
"ntp1.aliyun.com", // 阿里云2
"ntp.tencent.com", // 腾讯云
"time.windows.com", // Windows
"time.apple.com", // Apple
}

func Now(address ...string) (time.Time, error) {
Expand Down

0 comments on commit c1e3d04

Please sign in to comment.