Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Set webhook max time to 5 seconds

Acho Arnoldc1c37ae873e3
diff --git a/api/pkg/services/webhook_service.go b/api/pkg/services/webhook_service.go
index b60d2943..f934320b 100644
--- a/api/pkg/services/webhook_service.go
+++ b/api/pkg/services/webhook_service.go
@@ -191,7 +191,7 @@ func (service *WebhookService) sendNotification(ctx context.Context, event cloud
ctxLogger.Error(service.tracer.WrapErrorSpan(span, stacktrace.Propagate(err, msg)))
}
- ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
+ ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()
var response string