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

@@ -11,7 +11,7 @@ import (
paho "git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.golang.git"
"github.com/influxdb/influxdb/client/v2"
t "github.com/influxdb/telegraf"
"github.com/influxdb/telegraf/duration"
"github.com/influxdb/telegraf/outputs"
)
@@ -24,7 +24,7 @@ type MQTT struct {
Username string
Password string
Database string
Timeout t.Duration
Timeout duration.Duration
TopicPrefix string
Client *paho.Client