mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-28 16:47:01 +09:00
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:
6 files changed
+15
-30
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user