Skip to content

Commit 9b92012

Browse files
authored
chore: use ctx background when calling webhook async (caraml-dev#115)
1 parent 83f620d commit 9b92012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/pkg/webhooks/manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (w *SimpleWebhookManager) InvokeWebhooks(
8888
for _, client := range asyncClients {
8989
go func(client WebhookClient) {
9090
// Ignore the response from async webhooks
91-
if _, err := client.Invoke(ctx, originalPayload); err != nil {
91+
if _, err := client.Invoke(context.Background(), originalPayload); err != nil {
9292
return
9393
}
9494
}(client)

0 commit comments

Comments
 (0)