2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-23 10:16:12 +08:00

Update heartbeat goroutine to call ExtendLease on active tasks

This commit is contained in:
Ken Hibino
2022-02-12 09:48:07 -08:00
parent 6974812027
commit 92eba47853
6 changed files with 215 additions and 26 deletions

View File

@@ -1,3 +1,7 @@
// Copyright 2022 Kentaro Hibino. All rights reserved.
// Use of this source code is governed by a MIT license
// that can be found in the LICENSE file.
// Package timeutil exports functions and types related to time and date.
package timeutil
@@ -35,4 +39,4 @@ func (c *SimulatedClock) Now() time.Time { return c.t }
func (c *SimulatedClock) SetTime(t time.Time) { c.t = t }
func (c *SimulatedClock) AdvanceTime(d time.Duration) { c.t.Add(d) }
func (c *SimulatedClock) AdvanceTime(d time.Duration) { c.t = c.t.Add(d) }