mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 07:00:54 +00:00
Add tests for Pubsub
- `test_handle_subscription` - `test_handle_talk` - `test_message_all_peers`
This commit is contained in:
@ -323,7 +323,7 @@ class Pubsub:
|
||||
"""
|
||||
|
||||
# Broadcast message
|
||||
for _, stream in self.peers.items():
|
||||
for stream in self.peers.values():
|
||||
# Write message to stream
|
||||
await stream.write(raw_msg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user