Skip to content

Commit

Permalink
Pass the keepalive config as a dict (#370)
Browse files Browse the repository at this point in the history
This is temporarily needed until the keepalive changes in #368 go
through and make the keepalive system confuse aware.

Fixes #369.
  • Loading branch information
jinnatar authored Feb 15, 2023
1 parent 06496cb commit 9480150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def init(config: confuse.core.Configuration):

# Keep a reference here so we can stop the thread
# TODO: read keep-alive thresholds from config
keep_alive_monitor = KeepAliveMonitor(config=config["keep_alive_monitor"])
keep_alive_monitor = KeepAliveMonitor(config=config["keep_alive_monitor"].get(dict))

# Notify manager is responsible for the lifecycle of all notifiers
notify_manager = NotifyManager(config=config, keep_alive_monitor=keep_alive_monitor)
Expand Down

0 comments on commit 9480150

Please sign in to comment.