squeaknode/squeaknode/core/connected_peer.py
Jonathan Zernik 81d79cc7ce
Update connected peer proto struct (#1005)
* Update connected peer proto struct

* Use new connected peers struct in frontend

* Update frontend build
2021-08-21 01:37:14 -07:00

9 lines
223 B
Python

from typing import NamedTuple
from squeaknode.core.peer_address import PeerAddress
class ConnectedPeer(NamedTuple):
"""Represents another node in the network."""
peer_address: PeerAddress
connect_time_s: int