mirror of https://git.sr.ht/~sircmpwn/core-go
email: handle error from Enqueue() in EnqueueStd()
This commit is contained in:
parent
b1540a2277
commit
2fd72e9f66
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue