Skip to content

Commit c1c37ae

Browse files
committed
Set webhook max time to 5 seconds
1 parent 985a875 commit c1c37ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/pkg/services/webhook_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func (service *WebhookService) sendNotification(ctx context.Context, event cloud
191191
ctxLogger.Error(service.tracer.WrapErrorSpan(span, stacktrace.Propagate(err, msg)))
192192
}
193193

194-
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
194+
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
195195
defer cancel()
196196

197197
var response string

0 commit comments

Comments
 (0)