mirror of
https://github.com/keven1024/015.git
synced 2026-06-03 10:59:35 +00:00
fix(pkg): simplify task scheduling by removing unnecessary duration conversion in SetFileRemoveTask
This commit is contained in:
@@ -17,6 +17,6 @@ func SetFileRemoveTask(fileId string, expire time.Duration) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = client.Enqueue(asynq.NewTask("file:remove", json), asynq.ProcessIn(time.Duration(expire)*time.Second))
|
||||
_, err = client.Enqueue(asynq.NewTask("file:remove", json), asynq.ProcessIn(expire))
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user