mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 07:10:29 +08:00
Go: add context to storage (#17690)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -1226,7 +1226,8 @@ func (h *Handler) PingStore(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if storageImpl.Health() {
|
||||
ctx := c.Request.Context()
|
||||
if storageImpl.Health(ctx) {
|
||||
common.SuccessNoMessage(c, "SUCCESS")
|
||||
} else {
|
||||
common.ErrorWithCode(c, common.CodeServerError, "storage health check failed")
|
||||
|
||||
Reference in New Issue
Block a user