fix: too many open files close with influxdb connection
This commit is contained in:
parent
020d376e0c
commit
87cd87adaf
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -80,6 +80,7 @@ func (w *Weather) SendToInfluxDB() error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer conn.Close()
|
||||
|
||||
bps, _ := influx.NewBatchPoints(
|
||||
influx.BatchPointsConfig{
|
||||
|
|
Loading…
Add table
Reference in a new issue