Browse Source

util.NetworkRetryManager: better document API

master
SomberNight 2 years ago
parent
commit
e5fae1d685
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/util.py

3
electrum/util.py

@ -1820,7 +1820,8 @@ def event_listener(func):
_NetAddrType = TypeVar("_NetAddrType")
# requirements for _NetAddrType:
# - reasonable __hash__() implementation (e.g. based on host/port of remote endpoint)
class NetworkRetryManager(Generic[_NetAddrType]):
"""Truncated Exponential Backoff for network connections."""

Loading…
Cancel
Save