summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-sched/scheduler.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-09-26 19:23:41 +0000
committerLibravatar GitHub <noreply@github.com>2024-09-26 19:23:41 +0000
commitf3e2d36d6455e6d16aba833bdf64806377c8178f (patch)
tree8a1e87f349205e8073b72df6e5349c553db80a17 /vendor/codeberg.org/gruf/go-sched/scheduler.go
parent[chore] Fix some contrast issues in themes; performance tweaks (#3358) (diff)
downloadgotosocial-f3e2d36d6455e6d16aba833bdf64806377c8178f.tar.xz
[chore] update go-sched pkg (#3357)
* update go-sched to v1.2.4 which removes some now unused dependencies * whoops, remove test output
Diffstat (limited to 'vendor/codeberg.org/gruf/go-sched/scheduler.go')
-rw-r--r--vendor/codeberg.org/gruf/go-sched/scheduler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/codeberg.org/gruf/go-sched/scheduler.go b/vendor/codeberg.org/gruf/go-sched/scheduler.go
index 537e588fe..79913a9b3 100644
--- a/vendor/codeberg.org/gruf/go-sched/scheduler.go
+++ b/vendor/codeberg.org/gruf/go-sched/scheduler.go
@@ -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