style: 格式化 recordClientInstances 字段对齐并移除未使用的 fmt 导入
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package handler
|
package handler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"kenaito-conf/server/internal/dao"
|
"kenaito-conf/server/internal/dao"
|
||||||
"kenaito-conf/server/internal/logger"
|
"kenaito-conf/server/internal/logger"
|
||||||
"kenaito-conf/server/internal/model"
|
"kenaito-conf/server/internal/model"
|
||||||
@@ -228,13 +229,13 @@ func (h *ConfigApiHandler) recordClientInstances(ip string, configIds []int, app
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
instance := model.ClientInstance{
|
instance := model.ClientInstance{
|
||||||
AppConfigId: configId,
|
AppConfigId: configId,
|
||||||
AppName: appName,
|
AppName: appName,
|
||||||
Env: env,
|
Env: env,
|
||||||
Ip: ip,
|
Ip: ip,
|
||||||
LastPingAt: &now,
|
LastPingAt: &now,
|
||||||
CreatedAt: &now,
|
CreatedAt: &now,
|
||||||
UpdatedAt: &now,
|
UpdatedAt: &now,
|
||||||
}
|
}
|
||||||
if fetchType != "" {
|
if fetchType != "" {
|
||||||
instance.LastFetchAt = &now
|
instance.LastFetchAt = &now
|
||||||
|
|||||||
Reference in New Issue
Block a user