parent
db8c24cc7b
commit
8c6c144f28
|
@ -191,6 +191,12 @@ func (i *InfluxDB) Write(metrics []telegraf.Metric) error {
|
|||
break
|
||||
}
|
||||
}
|
||||
|
||||
// If all of the writes failed, create a new connection array so that
|
||||
// i.Connect() will be called on the next gather.
|
||||
if err != nil {
|
||||
i.conns = make([]client.Client)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue