Formatting

This commit is contained in:
Nick Mowen 2023-02-03 08:53:45 -07:00
parent 5dd088f8e5
commit 0534f63e8a
2 changed files with 9 additions and 2 deletions

View File

@ -330,7 +330,9 @@ class FrigateApp:
self.stats_emitter.start()
def start_watchdog(self) -> None:
self.frigate_watchdog = FrigateWatchdog(self.config, self.detectors, self.stop_event)
self.frigate_watchdog = FrigateWatchdog(
self.config, self.detectors, self.stop_event
)
self.frigate_watchdog.start()
def check_shm(self) -> None:

View File

@ -13,7 +13,12 @@ logger = logging.getLogger(__name__)
class FrigateWatchdog(threading.Thread):
def __init__(self, config: FrigateConfig, detectors: dict[str, ObjectDetectProcess], stop_event: MpEvent):
def __init__(
self,
config: FrigateConfig,
detectors: dict[str, ObjectDetectProcess],
stop_event: MpEvent,
):
threading.Thread.__init__(self)
self.name = "frigate_watchdog"
self.config = config