fix nil client in report

This commit is contained in:
Cody Lee 2021-12-09 17:36:45 -06:00
parent 5faa0791b2
commit cca20ab019
1 changed files with 1 additions and 0 deletions

View File

@ -260,6 +260,7 @@ func (u *DatadogUnifi) ReportMetrics(m *poller.Metrics, e *poller.Events) (*Repo
Start: time.Now(), Start: time.Now(),
Counts: &Counts{Val: make(map[item]int)}, Counts: &Counts{Val: make(map[item]int)},
Logger: u.Logger, Logger: u.Logger,
client: u.datadog,
} }
// batch all the points. // batch all the points.
u.loopPoints(r) u.loopPoints(r)