mirror of
https://github.com/InazumaV/Ratte.git
synced 2026-02-04 12:40:12 +00:00
update
add hook for handler change map to cmap for Trigger.hashs
This commit is contained in:
@@ -17,13 +17,13 @@ func (t *Trigger) addCronHandle(cron any, job cron.FuncJob) (cron.EntryID, error
|
||||
}
|
||||
|
||||
func (t *Trigger) hashEqualsOrStore(name, hash string) bool {
|
||||
if h, ok := t.hashs[name]; ok {
|
||||
if h, ok := t.hashs.Get(name); ok {
|
||||
if h == hash {
|
||||
return true
|
||||
}
|
||||
t.hashs[name] = hash
|
||||
t.hashs.Set(name, hash)
|
||||
} else {
|
||||
t.hashs[name] = hash
|
||||
t.hashs.Set(name, hash)
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user