removing peer cache

This commit is contained in:
afeiszli
2022-02-02 00:02:36 -05:00
parent 7c4e8b2b4a
commit 03a30b6bbc
7 changed files with 54 additions and 8 deletions

View File

@@ -357,7 +357,7 @@ func MonitorKeepalive(ctx context.Context, client mqtt.Client, cfg *config.Clien
ncutils.Log("unable to parse timestamp " + keepalivetime.String())
continue
}
if time.Since(keepalivetime) > time.Second*200 { // more than 3+ minutes
if time.Since(keepalivetime) > time.Second*120 { // more than 2+ minutes
ncutils.Log("server keepalive not recieved recently, resubscribe to message queue")
err := Resubscribe(client, cfg)
if err != nil {