summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iredis/client.py8
-rw-r--r--iredis/slot_render.py4
2 files changed, 9 insertions, 3 deletions
diff --git a/iredis/client.py b/iredis/client.py
index cfa301e..948d0d3 100644
--- a/iredis/client.py
+++ b/iredis/client.py
@@ -73,7 +73,13 @@ class Client:
self.scheme = scheme
self.connection = self.create_connection(
- host, port, db, password, path, scheme, username,
+ host,
+ port,
+ db,
+ password,
+ path,
+ scheme,
+ username,
)
# all command upper case
diff --git a/iredis/slot_render.py b/iredis/slot_render.py
index 803f536..70eb2fe 100644
--- a/iredis/slot_render.py
+++ b/iredis/slot_render.py
@@ -109,13 +109,13 @@ def render_slot_map(redis_cluster_solts_response):
ascii_art_pairs.append(("", "\n"))
ascii_art_pairs.append(("", f"{index+1:5} "))
ascii_art_pairs.extend(_render_block(slot_in_host[index : index + 8]))
- ascii_art_pairs.append(("", f" 16384"))
+ ascii_art_pairs.append(("", " 16384"))
host_color_sample = []
for hostname, color in PLATE.color.items():
host_color_sample.append((f"bg:{color}", " "))
- host_color_sample.append((f"", f" -> {hostname}"))
+ host_color_sample.append(("", f" -> {hostname}"))
host_color_sample.append(("", "\n"))
return host_color_sample + ascii_art_pairs