mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
basic-host and remove context
This commit is contained in:
@ -2,8 +2,7 @@ from abc import ABC, abstractmethod
|
||||
|
||||
class INetwork(ABC):
|
||||
|
||||
def __init__(self, context, my_peer_id, peer_store):
|
||||
self.context = context
|
||||
def __init__(self, my_peer_id, peer_store):
|
||||
self.my_peer_id = my_peer_id
|
||||
self.peer_store = peer_store
|
||||
|
||||
@ -16,9 +15,8 @@ class INetwork(ABC):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def new_stream(self, context, peer_id):
|
||||
def new_stream(self, peer_id):
|
||||
"""
|
||||
:param context: context instance
|
||||
:param peer_id: peer_id of destination
|
||||
:return: stream instance
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user