|
@@ -28,7 +28,6 @@ func New(address string, userName string, password string) (*MessageQueue, error
|
|
|
AddBroker(address).
|
|
|
SetClientID(clientID).
|
|
|
SetOrderMatters(false).
|
|
|
- SetAutoAckDisabled(true).
|
|
|
SetWill(clientID+"/will", "dead", 2, true))
|
|
|
|
|
|
token := mqttClient.Connect()
|
|
@@ -87,8 +86,6 @@ func (messageQueue *MessageQueue) Subscribe(group string, topic string, handler
|
|
|
}
|
|
|
}()
|
|
|
}
|
|
|
-
|
|
|
- message.Ack()
|
|
|
})
|
|
|
|
|
|
if !token.WaitTimeout(20 * time.Second) {
|