mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Change peerinfo to a class rather than a dictionary
This commit is contained in:
4
peer/peerinfo.py
Normal file
4
peer/peerinfo.py
Normal file
@ -0,0 +1,4 @@
|
||||
class PeerInfo:
|
||||
def __init__(self, peer_id, peer_data):
|
||||
self.peer_id = peer_id
|
||||
self.addrs = peer_data.get_addrs()
|
||||
Reference in New Issue
Block a user