fix: too many open files close with influxdb connection

This commit is contained in:
Adrien Waksberg 2019-08-22 07:27:53 +02:00
parent 020d376e0c
commit 87cd87adaf
2 changed files with 5 additions and 0 deletions

View file

@ -7,6 +7,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
## Unreleased
### Fixed
- too many open files close with influxdb connection
## v1.0.0 - 2019-08-14
### Added

View file

@ -80,6 +80,7 @@ func (w *Weather) SendToInfluxDB() error {
if err != nil {
return err
}
defer conn.Close()
bps, _ := influx.NewBatchPoints(
influx.BatchPointsConfig{