Skip to content

Commit dab9822

Browse files
committed
chore: 获取不到新版本时,则使用v0.4.0版本
1 parent 5c2670d commit dab9822

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/updater/updater.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const (
2828
githubRepo = "https-cert/deploy"
2929
githubAPIURL = "https://api.github.com/repos/" + githubRepo + "/releases/latest"
3030
downloadTimeout = 10 * time.Minute
31-
checksumTimeout = 30 * time.Second
3231
)
3332

3433
// 常见的 GitHub 镜像加速服务
@@ -75,7 +74,7 @@ type UpdateInfo struct {
7574
func CheckUpdate(ctx context.Context) (*UpdateInfo, error) {
7675
currentVersion := config.Version
7776
if currentVersion == "" {
78-
currentVersion = "v0.0.1"
77+
currentVersion = "v0.4.0"
7978
}
8079

8180
release, err := fetchLatestRelease(ctx)

0 commit comments

Comments
 (0)