From 1aa13adf85336c919364e2a9c13f1a95aa74b315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Thu, 17 Aug 2023 10:51:02 +0200 Subject: [PATCH] fix: remove legacy code --- robotoff/metrics.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/robotoff/metrics.py b/robotoff/metrics.py index fce81d9f52..c5f0914948 100644 --- a/robotoff/metrics.py +++ b/robotoff/metrics.py @@ -313,12 +313,3 @@ def generate_recent_changes_metrics(items: Iterable[dict]) -> Iterator[dict]: "time": item["t"], "fields": {"count": 1}, } - - -def save_recent_changes_metrics(): - from robotoff.utils import jsonl_iter - - if (client := get_influx_client()) is not None: - write_client = client.write_api(write_options=SYNCHRONOUS) - inserts = jsonl_iter() - write_client.write(bucket=settings.INFLUXDB_BUCKET, record=inserts)