summaryrefslogtreecommitdiffstats
path: root/routers/web
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2022-05-15 20:43:27 +0200
committerGitHub <noreply@github.com>2022-05-15 20:43:27 +0200
commit00a981d341dfa62d2a9667b01500820ec7ddf19a (patch)
treefc95b030791d6629d277cfe48a3380f296cf5adb /routers/web
parent3a245230f494b9d6a7e5c688cbb3c7f7c3a33cbd (diff)
downloadgitea-00a981d341dfa62d2a9667b01500820ec7ddf19a.tar.gz
gitea-00a981d341dfa62d2a9667b01500820ec7ddf19a.zip
Update go-chi/cache to utilize Ping() (#19719)
* update gitea.com/go-chi/cache -> v0.2.0 * ajust to new interface * refactor
Diffstat (limited to 'routers/web')
-rw-r--r--routers/web/healthcheck/check.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/healthcheck/check.go b/routers/web/healthcheck/check.go
index 481f05c0da..57707b6121 100644
--- a/routers/web/healthcheck/check.go
+++ b/routers/web/healthcheck/check.go
@@ -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)