Skip to content

Commit

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

Fixes martomi#369.
  • Loading branch information
jinnatar committed Feb 15, 2023
1 parent 06496cb commit b79e85f
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 b79e85f

Please sign in to comment.