Skip to content

Commit

Permalink
Bring back default keepalive due mqqt lib bug (eclipse/paho.mqtt.gola…
Browse files Browse the repository at this point in the history
  • Loading branch information
amnonbb committed Aug 25, 2023
1 parent a1d301c commit d080018
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/app.go
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/rs/cors"
"github.com/rs/zerolog/log"
"net/http"
"time"
)

type App struct {
Expand Down Expand Up @@ -108,8 +107,6 @@ func (a *App) initMQTT() {
opts.SetClientID(common.EP + "-exec_mqtt_client")
opts.SetUsername(common.USERNAME)
opts.SetPassword(common.PASSWORD)
opts.SetKeepAlive(10 * time.Second)
opts.SetPingTimeout(5 * time.Second)
opts.SetAutoReconnect(true)
opts.SetOnConnectHandler(a.SubMQTT)
opts.SetConnectionLostHandler(a.LostMQTT)
Expand Down

0 comments on commit d080018

Please sign in to comment.