diff options
Diffstat (limited to 'redis/commands/cluster.py')
-rw-r--r-- | redis/commands/cluster.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/commands/cluster.py b/redis/commands/cluster.py index a1060d2..8e4c8ef 100644 --- a/redis/commands/cluster.py +++ b/redis/commands/cluster.py @@ -673,7 +673,7 @@ class AsyncClusterManagementCommands( """ return await asyncio.gather( *( - asyncio.ensure_future(self.execute_command("CLUSTER DELSLOTS", slot)) + asyncio.create_task(self.execute_command("CLUSTER DELSLOTS", slot)) for slot in slots ) ) |