From 6267ca2039e6538e4f687071e71e2ad2dda11d09 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 13 十一月 2023 17:04:57 +0800 Subject: [PATCH] 系统启动时,保存systemDeviceId记录并上报 --- 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