mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
clean up
This commit is contained in:
parent
164f1b8545
commit
df96c04c38
@ -37,11 +37,9 @@ class EventMetadataSubscriber(Subscriber):
|
||||
def check_for_update(
|
||||
self, timeout: float = None
|
||||
) -> Optional[tuple[EventMetadataTypeEnum, any]]:
|
||||
print(f"checking for update, timeout {timeout}")
|
||||
return super().check_for_update(timeout)
|
||||
|
||||
def _return_object(self, topic: str, payload: any) -> any:
|
||||
print(topic, payload)
|
||||
if payload is None:
|
||||
return (None, None)
|
||||
return (EventMetadataTypeEnum[topic[len(self.topic_base) :]], payload)
|
||||
|
||||
@ -56,7 +56,6 @@ class EmbeddingMaintainer(threading.Thread):
|
||||
|
||||
def run(self) -> None:
|
||||
"""Maintain a Chroma vector database for semantic search."""
|
||||
logger.info("in maintainer run()")
|
||||
while not self.stop_event.is_set():
|
||||
self._process_updates()
|
||||
self._process_finalized()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user