mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 15:20:30 +08:00
Go: add context to storage (#17690)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user