From b24a62470d1c937dcd033728b05a47ad3e13500d Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 05 十二月 2023 10:40:14 +0800
Subject: [PATCH] dashboard字段更新
---
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