Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a recovery middleware.
newBackoff is a factory that must return a fresh backoff.BackOff on every call: backoff implementations in cenkalti/backoff/v4 (notably ExponentialBackOff) are not safe for concurrent use, and the Telegram client invokes RPCs from many goroutines in parallel.
Sharing a single instance corrupts its internal counters, breaks the exponential interval, and defeats MaxElapsedTime - see issue #218.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.