Change argument name of Network.listen and blakc format

This commit is contained in:
NIC619
2019-08-01 13:25:20 +08:00
parent cd684aad9e
commit 924e965537
7 changed files with 23 additions and 35 deletions

View File

@ -1,14 +1,7 @@
from ast import literal_eval
import asyncio
import random
from typing import (
Any,
Dict,
Iterable,
List,
Set,
Sequence,
)
from typing import Any, Dict, Iterable, List, Set, Sequence
from libp2p.peer.id import ID
@ -287,11 +280,7 @@ class GossipSub(IPubsubRouter):
return "unknown"
async def deliver_messages_to_peers(
self,
peers: List[ID],
msg_sender: ID,
origin_id: ID,
serialized_packet: bytes,
self, peers: List[ID], msg_sender: ID, origin_id: ID, serialized_packet: bytes
) -> None:
for peer_id_in_topic in peers:
# Forward to all peers that are not the