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

@@ -388,7 +388,7 @@ func storeAgentAttachment(ctx context.Context, docID string, payload []byte) (bo
return false, fmt.Errorf("storage not initialized")
}
bucket := fmt.Sprintf("%s-downloads", tenantID)
if err := storageImpl.Put(bucket, docID, payload); err != nil {
if err = storageImpl.Put(ctx, bucket, docID, payload); err != nil {
return false, err
}
return true, nil