Update to Go 1.14.3 with testing using 1.13.11 (#7564)
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// +build go1.11
|
||||
|
||||
package apcupsd
|
||||
|
||||
import (
|
||||
|
||||
@@ -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 ""
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
// +build !go1.12
|
||||
|
||||
package clickhouse
|
||||
|
||||
// Stop ClickHouse input service
|
||||
func (ch *ClickHouse) Stop() {}
|
||||
@@ -1,8 +0,0 @@
|
||||
// +build go1.12
|
||||
|
||||
package clickhouse
|
||||
|
||||
// Stop ClickHouse input service
|
||||
func (ch *ClickHouse) Stop() {
|
||||
ch.client.CloseIdleConnections()
|
||||
}
|
||||
Reference in New Issue
Block a user