fix nil client in report
This commit is contained in:
		
							parent
							
								
									5faa0791b2
								
							
						
					
					
						commit
						cca20ab019
					
				|  | @ -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) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue