Update to Go 1.14.3 with testing using 1.13.11 (#7564)

This commit is contained in:
Daniel Nelson
2020-05-26 15:40:25 -07:00
committed by GitHub
parent bdbf57576a
commit d27f676091
13 changed files with 74 additions and 135 deletions

View File

@@ -1,5 +1,3 @@
// +build go1.11
package apcupsd
import (

View File

@@ -205,6 +205,10 @@ func (ch *ClickHouse) Gather(acc telegraf.Accumulator) (err error) {
return nil
}
func (ch *ClickHouse) Stop() {
ch.client.CloseIdleConnections()
}
func (ch *ClickHouse) clusterIncludeExcludeFilter() string {
if len(ch.ClusterInclude) == 0 && len(ch.ClusterExclude) == 0 {
return ""

View File

@@ -1,6 +0,0 @@
// +build !go1.12
package clickhouse
// Stop ClickHouse input service
func (ch *ClickHouse) Stop() {}

View File

@@ -1,8 +0,0 @@
// +build go1.12
package clickhouse
// Stop ClickHouse input service
func (ch *ClickHouse) Stop() {
ch.client.CloseIdleConnections()
}