Skip to content

Commit

Permalink
Update utils/launch_redis.py
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Drozt <[email protected]>
  • Loading branch information
billschereriii and MattToast authored Jun 29, 2023
1 parent 0a96b7f commit efa0b68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/launch_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,7 @@ def create_db(n_nodes, port, device, rai_ver, udsport):

# Create cluster for clustered Redis request
if n_nodes > 1:
cluster_str = ''
cluster_str += " ".join(f"127.0.0.1:{port + i}" for i in range(n_nodes))
cluster_str = " ".join(f"127.0.0.1:{port + i}" for i in range(n_nodes))
cmd = f"{rediscli} --cluster create {cluster_str} --cluster-replicas 0"
print(cmd)
proc = run(cmd.split(), input="yes", encoding="utf-8", shell=False)
Expand Down

0 comments on commit efa0b68

Please sign in to comment.