refactoring of the code to implement IAdvertiser and IDiscoverer

This commit is contained in:
Christophe de Carvalho
2019-02-27 22:49:51 +01:00
parent 4889a0a790
commit cd8cb5c443
7 changed files with 260 additions and 0 deletions

View File

@ -23,6 +23,7 @@ async def cleanup_done_tasks():
# Some sleep necessary to context switch
await asyncio.sleep(3)
def initialize_default_swarm(
id_opt=None, transport_opt=None,
muxer_opt=None, sec_opt=None, peerstore_opt=None):
@ -54,6 +55,7 @@ def initialize_default_swarm(
return swarm_opt
async def new_node(
swarm_opt=None, id_opt=None, transport_opt=None,
muxer_opt=None, sec_opt=None, peerstore_opt=None):