From 62758aab8a31d0fd39da63b3e0c736fb1be2a2c5 Mon Sep 17 00:00:00 2001 From: bthari Date: Wed, 14 Aug 2024 12:09:47 +0700 Subject: [PATCH] chore: use ctx background when calling webhook async --- api/pkg/webhooks/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/pkg/webhooks/manager.go b/api/pkg/webhooks/manager.go index d49dfa5e..bc19ff57 100644 --- a/api/pkg/webhooks/manager.go +++ b/api/pkg/webhooks/manager.go @@ -88,7 +88,7 @@ func (w *SimpleWebhookManager) InvokeWebhooks( for _, client := range asyncClients { go func(client WebhookClient) { // Ignore the response from async webhooks - if _, err := client.Invoke(ctx, originalPayload); err != nil { + if _, err := client.Invoke(context.Background(), originalPayload); err != nil { return } }(client)