fixed string format to string '+' migration bug

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2024-03-04 10:56:38 +01:00
parent e64ce68167
commit 3b1c69ba91
No known key found for this signature in database

View File

@ -39,7 +39,7 @@ func lazyLoadMQTTClient() {
conf := config.GetConfig() conf := config.GetConfig()
hostPort := net.JoinHostPort(conf.MqttDomain, strconv.FormatInt(int64(conf.MqttPort), 10)) hostPort := net.JoinHostPort(conf.MqttDomain, strconv.FormatInt(int64(conf.MqttPort), 10))
uri := "tcp://%s" + hostPort uri := "tcp://" + hostPort
opts := mqtt.NewClientOptions().AddBroker(uri) opts := mqtt.NewClientOptions().AddBroker(uri)
opts.SetClientID(conf.ValidatorAddress) opts.SetClientID(conf.ValidatorAddress)