fixed mqtt URI bug

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2024-03-05 14:21:18 +01:00
parent 4f5b1e5777
commit a13b5bb8e6
No known key found for this signature in database

View File

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