build: upgrade base dependency

This commit is contained in:
2021-10-12 23:47:47 +02:00
parent 15c3fcae95
commit bb032651f5
345 changed files with 19 additions and 182635 deletions

View File

@ -3,7 +3,7 @@ package testtools
import (
mqtt "github.com/eclipse/paho.mqtt.golang"
"github.com/golang/protobuf/proto"
log "github.com/sirupsen/logrus"
"go.uber.org/zap"
)
type fakeMessage struct {
@ -50,10 +50,10 @@ func NewFakeMessage(topic string, payload []byte) mqtt.Message {
}
}
func NewFakeMessageFromProtobuf(topic string, msg proto.Message) mqtt.Message{
func NewFakeMessageFromProtobuf(topic string, msg proto.Message) mqtt.Message {
payload, err := proto.Marshal(msg)
if err != nil {
log.Errorf("unable to marshal protobuf message %T: %v", msg, err)
if err != nil {
zap.S().Errorf("unable to marshal protobuf message %T: %v", msg, err)
return nil
}
return NewFakeMessage(topic, payload)