diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-08-02 17:44:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 17:44:46 +0300 |
commit | e601aa7138da88d8afee34cf94b52e21f1351268 (patch) | |
tree | 2f5d896e5a42da0da18125c128bf552edd94aacd /redis/commands/cluster.py | |
parent | 9901c7963ff5c5f68ff7e651142c51c2d715c5eb (diff) | |
download | redis-py-e601aa7138da88d8afee34cf94b52e21f1351268.tar.gz |
Replace `ensure_future` with `create_task` (#2311)
* Replace `ensure_future` with `create_task`
* linters
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 ) ) |