use kick out clients

This commit is contained in:
abhishek9686 2024-03-01 12:58:00 +07:00
parent 01592b2ecc
commit be0a5885ea

View file

@ -301,14 +301,14 @@ func updateAcls() {
func migrateEmqx() {
err := mq.SendPullSYN()
if err != nil {
logger.Log(0, "failed to send pull syn to clients", "error", err.Error())
// 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 {
logger.Log(0, "failed to migrate emqx: ", "kickout-error", err.Error())
}
}
//}
}