From 193e8378d481b097a2d89f1026484493505ddd3b Mon Sep 17 00:00:00 2001 From: Hareesh Nagaraj Date: Mon, 30 Sep 2019 14:09:06 -0700 Subject: [PATCH] Add user metadata node to initial peer list --- discovery-provider/src/tasks/index.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discovery-provider/src/tasks/index.py b/discovery-provider/src/tasks/index.py index 5a2a53a0478..dcc9daea5ef 100644 --- a/discovery-provider/src/tasks/index.py +++ b/discovery-provider/src/tasks/index.py @@ -422,6 +422,10 @@ def refresh_peer_connections(task_context): continue cnode_endpoints[cnode_url] = True + # Add user metadata URL to peer connection list + user_node_url = task_context.shared_config["discprov"]["user_metadata_service_url"] + cnode_endpoints[user_node_url] = True + # Update creator node list ipfs_client.update_cnode_urls(cnode_endpoints.keys())