Skip to content
Permalink
Browse files

Delayed task support

  • Loading branch information...
tsileo committed Apr 15, 2019
1 parent f6022ef commit f19e0f4a362ee50bf24a70a08c73ab6b0087fae3
Showing with 1 addition and 1 deletion.
  1. +1 −1 main.go
@@ -210,7 +210,7 @@ func loadDir(where string) ([]*task, error) {
}

func newTask(u string, p []byte, expected int, sched string, mdelay int) *task {
nextRun := time.Now().Add(mdelay * time.Minute)
nextRun := time.Now().Add(time.Duration(mdelay) * time.Minute)
tid := newID(16)
if sched != "" {
h := sha1.New()

0 comments on commit f19e0f4

Please sign in to comment.
You can’t perform that action at this time.