fix(warp): surface update-clock persistence failures (#6209)

Co-authored-by: n0ctal <293235942+n0ctal@users.noreply.github.com>
This commit is contained in:
n0ctal
2026-08-13 15:31:05 +05:00
committed by GitHub
parent 79ef85b59f
commit 64f4f0746c
5 changed files with 122 additions and 8 deletions
+2 -2
View File
@@ -190,7 +190,7 @@ func (a *XraySettingController) warp(c *gin.Context) {
a.XrayService.SetToNeedRestart()
// Restart the auto-update clock so a scheduled rotation
// doesn't fire right after this manual one.
_ = a.SettingService.SetWarpLastUpdate(time.Now().Unix())
err = a.SettingService.SetWarpLastUpdate(time.Now().Unix())
}
case "license":
license := c.PostForm("license")
@@ -202,7 +202,7 @@ func (a *XraySettingController) warp(c *gin.Context) {
} else if err = a.SettingService.SetWarpUpdateInterval(interval); err == nil && interval > 0 {
// Count the interval from now rather than from epoch 0,
// otherwise the job would rotate on its next tick.
_ = a.SettingService.SetWarpLastUpdate(time.Now().Unix())
err = a.SettingService.SetWarpLastUpdate(time.Now().Unix())
}
}