79252540

Date: 2024-12-04 19:53:45
Score: 2.5
Natty:
Report link

Notice you are instantiating a new pool with each new call to get_redis_connection, effectively creating a new pool and one connection with each call. Instead create the pool only once and pass the same instance as connection_pool argument of aioredis.Redis.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user2565137