mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
Handle the unsubscribe case
This commit is contained in:
@ -107,8 +107,7 @@ class Pubsub():
|
|||||||
# to know that it is subscribed to the topic (doesn't
|
# to know that it is subscribed to the topic (doesn't
|
||||||
# need everyone to know)
|
# need everyone to know)
|
||||||
for message in rpc_incoming.subscriptions:
|
for message in rpc_incoming.subscriptions:
|
||||||
if message.subscribe:
|
self.handle_subscription(peer_id, message)
|
||||||
self.handle_subscription(peer_id, message)
|
|
||||||
|
|
||||||
if should_publish:
|
if should_publish:
|
||||||
# relay message to peers with router
|
# relay message to peers with router
|
||||||
|
|||||||
Reference in New Issue
Block a user