From 97da7d9de640f3f64edf4d0b77729063f639e770 Mon Sep 17 00:00:00 2001 From: Nathaniel Waisbrot Date: Tue, 26 Dec 2023 22:42:19 -0500 Subject: [PATCH] avoid writing a point with no fields --- metrics/influx.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/metrics/influx.go b/metrics/influx.go index 7c2c477..82573bc 100644 --- a/metrics/influx.go +++ b/metrics/influx.go @@ -47,8 +47,6 @@ func recordInfluxFetch(station string, speciesCount int) { func recordInfluxInvoked() { invokeTime = time.Now() - p := influxdb.NewPointWithMeasurement("invoke").SetTime(time.Now()) - writePoint(p) } func recordInfluxEmail(recipientCount int, bodyLength int) {