mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 07:27:35 +08:00
minor fix (#4040)
This commit is contained in:
@@ -501,9 +501,10 @@ def start_redis(node_ip_address,
|
||||
started.
|
||||
"""
|
||||
|
||||
assert len(redirect_files) == 1 + num_redis_shards, (
|
||||
"The number of redirect file pairs should be equal to the number of"
|
||||
"redis shards (including the primary shard) we will start.")
|
||||
if len(redirect_files) != 1 + num_redis_shards:
|
||||
raise ValueError("The number of redirect file pairs should be equal "
|
||||
"to the number of redis shards (including the "
|
||||
"primary shard) we will start.")
|
||||
if redis_shard_ports is None:
|
||||
redis_shard_ports = num_redis_shards * [None]
|
||||
elif len(redis_shard_ports) != num_redis_shards:
|
||||
|
||||
Reference in New Issue
Block a user