ReconnectJitter is an Option to set the upper bound of a random delay added ReconnectWait. Defaults to 100ms and 1s, respectively.
(jitter, jitterForTLS time.Duration)
| 1160 | // ReconnectJitter is an Option to set the upper bound of a random delay added ReconnectWait. |
| 1161 | // Defaults to 100ms and 1s, respectively. |
| 1162 | func ReconnectJitter(jitter, jitterForTLS time.Duration) Option { |
| 1163 | return func(o *Options) error { |
| 1164 | o.ReconnectJitter = jitter |
| 1165 | o.ReconnectJitterTLS = jitterForTLS |
| 1166 | return nil |
| 1167 | } |
| 1168 | } |
| 1169 | |
| 1170 | // CustomReconnectDelay is an Option to set the CustomReconnectDelayCB option. |
| 1171 | // See CustomReconnectDelayCB Option for more details. |
no outgoing calls