mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 15:26:04 +08:00
migrate emqx
This commit is contained in:
parent
83cdc1abf6
commit
81af1d92c0
|
@ -297,14 +297,14 @@ func updateAcls() {
|
|||
|
||||
func MigrateEmqx() {
|
||||
|
||||
// err := mq.SendPullSYN()
|
||||
// if err != nil {
|
||||
// logger.Log(0, "failed to send pull syn to clients", "error", err.Error())
|
||||
slog.Info("proceeding to kicking out clients from emqx")
|
||||
err := mq.KickOutClients()
|
||||
err := mq.SendPullSYN()
|
||||
if err != nil {
|
||||
logger.Log(0, "failed to migrate emqx: ", "kickout-error", err.Error())
|
||||
logger.Log(0, "failed to send pull syn to clients", "error", err.Error())
|
||||
slog.Info("proceeding to kicking out clients from emqx")
|
||||
err := mq.KickOutClients()
|
||||
if err != nil {
|
||||
logger.Log(0, "failed to migrate emqx: ", "kickout-error", err.Error())
|
||||
}
|
||||
}
|
||||
//}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue