Update go-chi/cache to utilize Ping() (#19719)
* update gitea.com/go-chi/cache -> v0.2.0 * ajust to new interface * refactor
This commit is contained in:
parent
3a245230f4
commit
00a981d341
6 changed files with 15 additions and 30 deletions
|
@ -126,7 +126,7 @@ func checkCache(checks checks) status {
|
|||
}
|
||||
|
||||
st := componentStatus{}
|
||||
if err := cache.Ping(); err != nil {
|
||||
if err := cache.GetCache().Ping(); err != nil {
|
||||
st.Status = fail
|
||||
st.Time = getCheckTime()
|
||||
log.Error("cache ping failed with error: %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue