Skip to content

Commit

Permalink
Merge pull request #2 from WallEnd/config-1
Browse files Browse the repository at this point in the history
config-1 slowing down reconnect iterations and increasing minimal rec…
  • Loading branch information
WallEnd authored Jul 17, 2020
2 parents bd53f2e + 8186450 commit 785e83b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const (
// DefaultPrivateChannelPrefix ...
DefaultPrivateChannelPrefix = "$"
// NumReconnect is maximum number of reconnect attempts, 0 means reconnect forever.
DefaultBackoffNumReconnect = 0
DefaultBackoffNumReconnect = 10
// MinMilliseconds is a minimum value of the reconnect interval.
DefaultBackoffMinMilliseconds = 100
DefaultBackoffMinMilliseconds = 5 * 1000
// MaxMilliseconds is a maximum value of the reconnect interval.
DefaultBackoffMaxMilliseconds = 20 * 1000
// Factor is the multiplying factor for each increment step.
Expand Down

0 comments on commit 785e83b

Please sign in to comment.