Update go-chi/cache to utilize Ping() (#19719)

* update gitea.com/go-chi/cache -> v0.2.0

* ajust to new interface

* refactor
此提交包含在:
6543
2022-05-15 20:43:27 +02:00
提交者 GitHub
父節點 3a245230f4
當前提交 00a981d341
共有 6 個檔案被更改,包括 15 行新增30 行删除
+1 -1
查看文件
@@ -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)