mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 22:22:25 -05:00
[chore] update go-sched pkg (#3357)
* update go-sched to v1.2.4 which removes some now unused dependencies * whoops, remove test output
This commit is contained in:
parent
82b9515a9d
commit
f3e2d36d64
27 changed files with 33 additions and 4933 deletions
4
vendor/codeberg.org/gruf/go-sched/scheduler.go
generated
vendored
4
vendor/codeberg.org/gruf/go-sched/scheduler.go
generated
vendored
|
|
@ -225,7 +225,7 @@ func (sch *Scheduler) handle(v interface{}) {
|
|||
|
||||
// Update the next call time
|
||||
next := v.timing.Next(now)
|
||||
v.next.Store(next)
|
||||
storeTime(&v.next, next)
|
||||
|
||||
// Append this job to queued
|
||||
sch.jobs = append(sch.jobs, v)
|
||||
|
|
@ -261,7 +261,7 @@ func (sch *Scheduler) schedule(now time.Time) {
|
|||
|
||||
// Update the next call time
|
||||
next := job.timing.Next(now)
|
||||
job.next.Store(next)
|
||||
storeTime(&job.next, next)
|
||||
|
||||
if next.IsZero() {
|
||||
// Zero time, this job is done and can be dropped
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue