fix linting issues

This commit is contained in:
zixuanzh
2019-03-17 21:30:56 -04:00
committed by Stuckinaboot
parent 2e437e5b8b
commit fee905ace2
5 changed files with 12 additions and 11 deletions

View File

@ -32,10 +32,10 @@ async def echo_stream_handler(stream):
async def perform_two_host_set_up_custom_handler(handler):
transport_opt_list = [["/ip4/127.0.0.1/tcp/0"], ["/ip4/127.0.0.1/tcp/0"]]
(node_a, node_b) = await set_up_nodes_by_transport_opt(transport_opt_list)
(node_a, node_b) = await set_up_nodes_by_transport_opt(transport_opt_list)
node_b.set_stream_handler("/echo/1.0.0", handler)
# Associate the peer with local ip address (see default parameters of Libp2p())
node_a.get_peerstore().add_addrs(node_b.get_id(), node_b.get_addrs(), 10)
return node_a, node_b
return node_a, node_b