parent
3923c02979
commit
34c4f4bf53
|
@ -191,6 +191,12 @@ func (i *InfluxDB) Write(metrics []telegraf.Metric) error {
|
||||||
break
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue