Переведите приём и чтение вложений на асинхронный контракт

This commit is contained in:
2026-11-18 15:33:32 +03:00
parent efc56b1382
commit bf970227d6
19 changed files with 667 additions and 367 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ func exercise(ctx context.Context, o options, out, progress io.Writer) error {
fmt.Fprintln(progress, "fault dry/apply/repeat passed; referenced messages, corrupt used blobs and fresh objects preserved")
// These resources were created above solely for this run; no compose
// endpoint or pre-existing database/bucket is ever accepted by this tool.
if _, err = db.Pool.Exec(ctx, `TRUNCATE message_attachments,attachments,files`); err != nil {
if _, err = db.Pool.Exec(ctx, `TRUNCATE message_attachments,attachments,files CASCADE`); err != nil {
return err
}
if err = emptyBucket(ctx, s3.Store); err != nil {