Skip to content

Commit

Permalink
fix: remove legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Aug 20, 2023
1 parent 9a6bcbe commit 1aa13ad
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions robotoff/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 1aa13ad

Please sign in to comment.