From 8324f872ef3a4d0c978a9b1d062800c6a1701c12 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 01 十二月 2023 09:58:17 +0800 Subject: [PATCH] fix --- api/v1/device.go | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/api/v1/device.go b/api/v1/device.go index 01c278f..5bcb18d 100644 --- a/api/v1/device.go +++ b/api/v1/device.go @@ -2,15 +2,12 @@ import ( "apsClient/conf" - "apsClient/constvar" - "apsClient/crontask" "apsClient/model/request" "apsClient/model/response" _ "apsClient/model/response" "apsClient/pkg/contextx" "apsClient/pkg/ecode" "apsClient/pkg/logx" - "apsClient/pkg/safe" "apsClient/service" "github.com/gin-gonic/gin" ) @@ -52,9 +49,6 @@ } service.SetDeviceIDToFile(params.CurrentDeviceID) conf.Conf.CurrentDeviceID = params.CurrentDeviceID - safe.Go(func() { - _ = crontask.RestartTask(conf.Conf.SerfClusterStatus != constvar.SerfClusterStatusSlave) - }) ctx.Ok() } -- Gitblit v1.8.0