ci: 测试ci
All checks were successful
Release / deploy (push) Successful in 1m44s

This commit is contained in:
2023-10-22 12:20:45 +08:00
parent 9a4b2afb8f
commit ac04817346
6 changed files with 152 additions and 88 deletions

View File

@@ -54,7 +54,8 @@ func (r *record) watch(ctx context.Context) {
if err != nil {
r.logger.Ctx(ctx).Error("check ip err", zap.Error(err))
} else {
r.logger.Ctx(ctx).Info("check ip ok", zap.Duration("duration", duration))
r.logger.Ctx(ctx).Info("check ip ok",
zap.String("duration", fmt.Sprintf("%dms", duration.Milliseconds())))
}
_ = s.check(err == nil, func() error {
// 增加负载均衡