We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be47d1 commit 079afb6Copy full SHA for 079afb6
mem3_helper.py
@@ -31,8 +31,9 @@ def construct_service_record():
31
max_tries=10
32
)
33
def discover_peers(service_record):
34
- expected_peers_count = int(os.getenv('COUCHDB_CLUSTER_SIZE'))
+ expected_peers_count = os.getenv('COUCHDB_CLUSTER_SIZE')
35
if expected_peers_count:
36
+ expected_peers_count = int(expected_peers_count)
37
print('Expecting', expected_peers_count, 'peers...')
38
else:
39
print('Looks like COUCHDB_CLUSTER_SIZE is not set, will not wait for DNS...')
0 commit comments