Moving the Duration wrapper to it's own package to break import loops.

This commit is contained in:
gotyaoi
2015-10-16 23:10:14 -07:00
committed by Ellison Marks
parent d77cfd6ecc
commit 0299a17da1
6 changed files with 31 additions and 27 deletions

View File

@@ -9,7 +9,7 @@ import (
"strings"
"github.com/influxdb/influxdb/client/v2"
t "github.com/influxdb/telegraf"
"github.com/influxdb/telegraf/duration"
"github.com/influxdb/telegraf/outputs"
)
@@ -22,7 +22,7 @@ type InfluxDB struct {
Database string
UserAgent string
Precision string
Timeout t.Duration
Timeout duration.Duration
conns []client.Client
}