From 04dcd7886338ecf6bbada56bde353153340518f1 Mon Sep 17 00:00:00 2001 From: steden <1470804@qq.com> Date: Wed, 22 Nov 2023 22:52:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4go=201.20=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- healthCheck.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/healthCheck.go b/healthCheck.go index fc69b6c..0d06a68 100644 --- a/healthCheck.go +++ b/healthCheck.go @@ -5,7 +5,6 @@ import ( "github.com/farseer-go/fs" "github.com/farseer-go/fs/container" "github.com/farseer-go/fs/flog" - "time" ) type healthCheck struct { @@ -16,5 +15,5 @@ func (c *healthCheck) Check() (string, error) { t, err := container.Resolve[IClient](c.name).Original().Time(fs.Context).Result() flog.ErrorIfExists(err) - return fmt.Sprintf("Redis.%s => %s", c.name, t.Format(time.DateTime)), err + return fmt.Sprintf("Redis.%s => %s", c.name, t.Format("2006-01-02 15:04:05")), err }