mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-15 17:44:37 +08:00
use kick out clients
This commit is contained in:
parent
01592b2ecc
commit
be0a5885ea
1 changed files with 7 additions and 7 deletions
|
@ -301,14 +301,14 @@ func updateAcls() {
|
||||||
|
|
||||||
func migrateEmqx() {
|
func migrateEmqx() {
|
||||||
|
|
||||||
err := mq.SendPullSYN()
|
// 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()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Log(0, "failed to send pull syn to clients", "error", err.Error())
|
logger.Log(0, "failed to migrate emqx: ", "kickout-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…
Add table
Reference in a new issue