mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Refine Mplex.close and SwarmConn.close
Ensure `close` cleans up things and cancel the service finally.
This commit is contained in:
@ -58,11 +58,11 @@ class TopicValidator(NamedTuple):
|
||||
|
||||
|
||||
# TODO: Add interface for Pubsub
|
||||
class BasePubsub(ABC):
|
||||
class IPubsub(ABC):
|
||||
pass
|
||||
|
||||
|
||||
class Pubsub(BasePubsub, Service):
|
||||
class Pubsub(IPubsub, Service):
|
||||
|
||||
host: IHost
|
||||
|
||||
|
||||
Reference in New Issue
Block a user