mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 14:35:47 +00:00
fixed mqtt URI bug
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
4f5b1e5777
commit
a13b5bb8e6
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user