Minor improvements

This commit is contained in:
Ken Hibino
2019-12-04 16:56:10 -08:00
parent 998e761660
commit afacc31990
4 changed files with 5 additions and 6 deletions

View File

@@ -30,7 +30,6 @@ func (c *Client) Process(task *Task, processAt time.Time) error {
return c.enqueue(msg, processAt)
}
// enqueue pushes a given task to the specified queue.
func (c *Client) enqueue(msg *rdb.TaskMessage, processAt time.Time) error {
if time.Now().After(processAt) {
return c.rdb.Enqueue(msg)