migrate emqx

This commit is contained in:
abhishek9686 2024-03-01 14:26:07 +07:00
parent 8e240ff701
commit 83cdc1abf6

View file

@ -66,6 +66,7 @@ func HandleRESTRequests(wg *sync.WaitGroup, ctx context.Context) {
}()
if os.Getenv("MIGRATE_EMQX") == "true" {
logger.Log(0, "migrating emqx...")
time.Sleep(time.Second * 2)
m.MigrateEmqx()
}
logger.Log(0, "REST Server successfully started on port ", port, " (REST)")