Skip to content

Commit

Permalink
events/nats_config: higher default connection timeout
Browse files Browse the repository at this point in the history
100ms is too low and results in context timeouts when interacting with
the stream
  • Loading branch information
joelrebel committed Sep 2, 2024
1 parent 5bfcf3b commit 573485a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/nats_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

const (
// nats server connection timeout
connectTimeout = 100 * time.Millisecond
connectTimeout = 60 * time.Second

// reconnect jitter
reconnectJitter = 10 * time.Second
Expand Down

0 comments on commit 573485a

Please sign in to comment.