Skip to content

Commit

Permalink
移除go 1.20方法
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Nov 22, 2023
1 parent 3c718ed commit 04dcd78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions healthCheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}

0 comments on commit 04dcd78

Please sign in to comment.