PR feedback

- Use `Sequence` instead of `List`
- Add note
- Remove redundant words in docstring
This commit is contained in:
mhchia
2019-09-04 20:49:14 +08:00
parent db0da8083a
commit 0e3d4508d6
3 changed files with 7 additions and 6 deletions

View File

@ -183,6 +183,7 @@ async def make_p2pd(
for maddr in maddrs:
try:
ip = maddr.value_for_protocol(multiaddr.protocols.P_IP4)
# NOTE: Check if this `maddr` uses `tcp`.
maddr.value_for_protocol(multiaddr.protocols.P_TCP)
except multiaddr.exceptions.ProtocolLookupError:
continue