email: handle error from Enqueue() in EnqueueStd()

This commit is contained in:
Dennis Schön 2022-12-10 10:19:19 +01:00 committed by Drew DeVault
parent b1540a2277
commit 2fd72e9f66
1 changed files with 1 additions and 2 deletions

View File

@ -149,8 +149,7 @@ func EnqueueStd(ctx context.Context, header mail.Header,
log.Fatal(err)
}
queue.Queue.Enqueue(NewTask(&buf, rcpts))
return nil
return queue.Enqueue(NewTask(&buf, rcpts))
}
type Queue struct {