MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / AddTimerIntoDB

Method AddTimerIntoDB

plugin/manager/timer/timer.go:174–179  ·  view source on GitHub ↗

AddTimerIntoDB 添加定时器

(t *Timer)

Source from the content-addressed store, hash-verified

172
173// AddTimerIntoDB 添加定时器
174func (c *Clock) AddTimerIntoDB(t *Timer) (err error) {
175 c.timersmu.Lock()
176 err = c.db.Insert("timer", t)
177 c.timersmu.Unlock()
178 return
179}
180
181// AddTimerIntoMap 添加定时器到缓存
182func (c *Clock) AddTimerIntoMap(t *Timer) (err error) {

Callers 2

TestClockFunction · 0.95
RegisterTimerMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestClockFunction · 0.76