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

Method loadTimers

plugin/manager/timer/timer.go:189–200  ·  view source on GitHub ↗
(db *sql.Sqlite)

Source from the content-addressed store, hash-verified

187}
188
189func (c *Clock) loadTimers(db *sql.Sqlite) {
190 c.db = db
191 err := c.db.Create("timer", &Timer{})
192 if err == nil {
193 var t Timer
194 _ = c.db.FindFor("timer", &t, "", func() error {
195 tescape := t
196 go c.RegisterTimer(&tescape, false, true)
197 return nil
198 })
199 }
200}

Callers 1

NewClockFunction · 0.80

Calls 1

RegisterTimerMethod · 0.95

Tested by

no test coverage detected