fix and update

This commit is contained in:
tao.chen
2026-08-26 10:42:53 +08:00
parent 64b5d9f7f3
commit 8c0e14987e
3 changed files with 29 additions and 88 deletions
+5 -4
View File
@@ -16,10 +16,11 @@ type Config struct {
var (
globalConfig Config
// pendingDebounceMap 防抖窗口内的待执行任务key: "repoName:ref", value: *debounceEntry
pendingDebounceMap sync.Map
// 防抖冷却时间限制:5 分钟
debounceDuration = 5 * time.Minute
// lastExecMap 冷却去重状态key: "repoName:ref", value: *debounceEntry
// 记录每个 key 上次实际执行时刻,冷却窗口内到达的 push 直接丢弃
lastExecMap sync.Map
// 防抖冷却时间限制:3 分钟
debounceDuration = 3 * time.Minute
// bark 推送消息
pushURL = "https://bark.maimaicuizhiji.top/push"
)