Skip to content

Commit 079afb6

Browse files
committed
Convert expected_peers_count to int separately
1 parent 1be47d1 commit 079afb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mem3_helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ def construct_service_record():
3131
max_tries=10
3232
)
3333
def discover_peers(service_record):
34-
expected_peers_count = int(os.getenv('COUCHDB_CLUSTER_SIZE'))
34+
expected_peers_count = os.getenv('COUCHDB_CLUSTER_SIZE')
3535
if expected_peers_count:
36+
expected_peers_count = int(expected_peers_count)
3637
print('Expecting', expected_peers_count, 'peers...')
3738
else:
3839
print('Looks like COUCHDB_CLUSTER_SIZE is not set, will not wait for DNS...')

0 commit comments

Comments
 (0)