Use github paho mqtt client instead of gerrit

this might fix #921
This commit is contained in:
Cameron Sparr
2016-03-30 11:54:01 -06:00
parent e03f684508
commit 62105bb353
4 changed files with 7 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ import (
"github.com/influxdata/telegraf/plugins/inputs"
"github.com/influxdata/telegraf/plugins/parsers"
"git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.golang.git"
"github.com/eclipse/paho.mqtt.golang"
)
type MQTTConsumer struct {
@@ -39,7 +39,7 @@ type MQTTConsumer struct {
InsecureSkipVerify bool
sync.Mutex
client *mqtt.Client
client mqtt.Client
// channel of all incoming raw mqtt messages
in chan mqtt.Message
done chan struct{}
@@ -163,7 +163,7 @@ func (m *MQTTConsumer) receiver() {
}
}
func (m *MQTTConsumer) recvMessage(_ *mqtt.Client, msg mqtt.Message) {
func (m *MQTTConsumer) recvMessage(_ mqtt.Client, msg mqtt.Message) {
m.in <- msg
}

View File

@@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.golang.git"
"github.com/eclipse/paho.mqtt.golang"
)
const (

View File

@@ -10,7 +10,7 @@ import (
"github.com/influxdata/telegraf/plugins/outputs"
"github.com/influxdata/telegraf/plugins/serializers"
paho "git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.golang.git"
paho "github.com/eclipse/paho.mqtt.golang"
)
var sampleConfig = `
@@ -57,7 +57,7 @@ type MQTT struct {
// Use SSL but skip chain & host verification
InsecureSkipVerify bool
client *paho.Client
client paho.Client
opts *paho.ClientOptions
serializer serializers.Serializer