Skip to content

Commit 40ca62b

Browse files
committed
🐛 Fix Redis cache configuration access in BotKit initialization
1 parent 5c464a8 commit 40ca62b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/custom/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ def __init__(
9898
if cache_config:
9999
logger.info("Using Redis cache")
100100
self.botkit_cache = aiocache.RedisCache(
101-
endpoint=cache_config.get("host", "localhost"),
102-
port=cache_config.get("port", 6379),
103-
db=cache_config.get("db", 0),
104-
password=cache_config.get("password"),
105-
ssl=cache_config.get("ssl", False),
101+
endpoint=cache_config.host,
102+
port=cache_config.port,
103+
db=cache_config.db,
104+
password=cache_config.password,
105+
ssl=cache_config.ssl,
106106
namespace="botkit",
107107
)
108108
else:

0 commit comments

Comments
 (0)