Allow for Configurable Redis Port (#1124)

* root: make redis port configurable

* root: parse redis port from config as an integer

* code formatting

* lifecycle: truncate line under 100 chars

* lifecycle: incorrect indenting on newline
This commit is contained in:
Starz0r
2021-07-12 04:01:41 -05:00
committed by GitHub
parent a62e3557ac
commit 5cfbb0993a
3 changed files with 9 additions and 8 deletions

View File

@ -43,8 +43,8 @@ while True:
while True:
try:
redis = Redis.from_url(
f"redis://:{CONFIG.y('redis.password')}@{CONFIG.y('redis.host')}:6379"
f"/{CONFIG.y('redis.ws_db')}"
f"redis://:{CONFIG.y('redis.password')}@{CONFIG.y('redis.host')}:"
f"{int(CONFIG.y('redis.port'))}/{CONFIG.y('redis.ws_db')}"
)
redis.ping()
break