chore(queue): add queue message interface (#602)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2021-07-18 01:58:46 +08:00
committed by GitHub
parent d6b4a0ae39
commit 380162a38a
8 changed files with 31 additions and 23 deletions

View File

@@ -283,7 +283,7 @@ func handleNotification(ctx context.Context, cfg config.ConfYaml, req gorush.Req
notification.AddWaitCount()
}
if err := q.Queue(*notification); err != nil {
if err := q.Queue(notification); err != nil {
markFailedNotification(cfg, notification, "max capacity reached")
}