Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ omit =
env/*
*/tests*
*/__init__.py
*/redis_services*

[report]
exclude_lines =
Expand Down
8 changes: 2 additions & 6 deletions server/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,19 @@
from redis.exceptions import DataError
from uvicorn.config import logger

# from .environment import REDIS_HOST, REDIS_LOCAL_PORT
from .environment import REDIS_HOST, REDIS_LOCAL_PORT

from typing import Dict

from server.redis_services import ElastiCache_Api_client
from server.constants import (
LOG_EXPIRE,
REDIS_ERROR,
DEFAULT_EXPIRE,
)

elastiCache_api_client = ElastiCache_Api_client()
REDIS_HOST, REDIS_PORT = elastiCache_api_client.get_host_port()

redis_data = redis.Redis(
host=REDIS_HOST,
port=REDIS_PORT,
port=REDIS_LOCAL_PORT,
db=0,
charset="utf-8",
decode_responses=True,
Expand Down
28 changes: 0 additions & 28 deletions server/redis_services.py

This file was deleted.