From 1d2d1ab83ef78c6d4ea064e8c6dd6e4ce3f85ac3 Mon Sep 17 00:00:00 2001 From: Odboy Date: Thu, 7 May 2026 21:16:20 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=A0=BC=E5=BC=8F=E5=8C=96=20recordCl?= =?UTF-8?q?ientInstances=20=E5=AD=97=E6=AE=B5=E5=AF=B9=E9=BD=90=E5=B9=B6?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=20fmt=20?= =?UTF-8?q?=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/internal/handler/config_api.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/server/internal/handler/config_api.go b/server/internal/handler/config_api.go index 4f58955..cdbab95 100644 --- a/server/internal/handler/config_api.go +++ b/server/internal/handler/config_api.go @@ -1,6 +1,7 @@ package handler import ( + "fmt" "kenaito-conf/server/internal/dao" "kenaito-conf/server/internal/logger" "kenaito-conf/server/internal/model" @@ -228,13 +229,13 @@ func (h *ConfigApiHandler) recordClientInstances(ip string, configIds []int, app } } else { instance := model.ClientInstance{ - AppConfigId: configId, - AppName: appName, - Env: env, - Ip: ip, - LastPingAt: &now, - CreatedAt: &now, - UpdatedAt: &now, + AppConfigId: configId, + AppName: appName, + Env: env, + Ip: ip, + LastPingAt: &now, + CreatedAt: &now, + UpdatedAt: &now, } if fetchType != "" { instance.LastFetchAt = &now