diff options
Diffstat (limited to 'ttun_server/redis.py')
| -rw-r--r-- | ttun_server/redis.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ttun_server/redis.py b/ttun_server/redis.py index fb9ff81..dabe940 100644 --- a/ttun_server/redis.py +++ b/ttun_server/redis.py | |||
| @@ -9,5 +9,5 @@ class RedisConnectionPool: | |||
| 9 | @classmethod | 9 | @classmethod |
| 10 | def get_connection(cls) -> Redis: | 10 | def get_connection(cls) -> Redis: |
| 11 | if cls._pool is None: | 11 | if cls._pool is None: |
| 12 | cls._pool = ConnectionPool.from_url(os.environ.get('REDIS_URL')) | 12 | cls._pool = ConnectionPool.from_url(os.environ.get("REDIS_URL")) |
| 13 | return Redis(connection_pool=cls._pool) \ No newline at end of file | 13 | return Redis(connection_pool=cls._pool) |
