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:
@@ -1006,7 +1006,7 @@ func (s *Service) ListServices(ctx context.Context) ([]ServiceStatus, error) {
|
||||
|
||||
// storage engine
|
||||
storageImpl := storage.GetStorageFactory().GetStorage()
|
||||
storageHealth := storageImpl.Health()
|
||||
storageHealth := storageImpl.Health(ctx)
|
||||
if storageHealth {
|
||||
results = append(results, newServiceStatus("storage_engine", storageImpl.Type(), "alive", time.Now(), ""))
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user