From 573485ad691329f73cd2f91b5e069539b2d0f7fd Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Wed, 28 Aug 2024 15:33:22 +0200 Subject: [PATCH] events/nats_config: higher default connection timeout 100ms is too low and results in context timeouts when interacting with the stream --- events/nats_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/nats_config.go b/events/nats_config.go index 9316b44..a735344 100644 --- a/events/nats_config.go +++ b/events/nats_config.go @@ -10,7 +10,7 @@ import ( const ( // nats server connection timeout - connectTimeout = 100 * time.Millisecond + connectTimeout = 60 * time.Second // reconnect jitter reconnectJitter = 10 * time.Second