From 5b210de198e68061a586887e3de486dff560e625 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 25 Feb 2024 07:52:28 -0500 Subject: [PATCH] refactor: use job terminology for consistency --- protocols/s5/tus.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/s5/tus.go b/protocols/s5/tus.go index 30741a9..ee20241 100644 --- a/protocols/s5/tus.go +++ b/protocols/s5/tus.go @@ -251,7 +251,7 @@ func (t *TusHandler) ScheduleUpload(ctx context.Context, uploadID string) error return errors.New("upload not found") } - task := t.cron.RetryableJob(cron.RetryableJobParams{ + job := t.cron.RetryableJob(cron.RetryableJobParams{ Name: "tusUpload", Function: t.uploadTask, Args: []interface{}{upload.Hash}, @@ -266,7 +266,7 @@ func (t *TusHandler) ScheduleUpload(ctx context.Context, uploadID string) error }, }) - _, err := t.cron.CreateJob(task) + _, err := t.cron.CreateJob(job) if err != nil { return err