Go: add context to storage (#17690)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-08-03 15:08:21 +08:00
committed by GitHub
parent 2dbdaf951d
commit bddc941814
42 changed files with 634 additions and 527 deletions

View File

@@ -367,7 +367,7 @@ func main() {
}
defer redis.Close()
if err = storage.Init(); err != nil {
if err = storage.Init(ctx); err != nil {
common.Error("Failed to initialize storage factory", err)
}
defer storage.CloseStorage()