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

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
@@ -65,7 +65,7 @@ func run(ctx context.Context, args []string, out, errOut io.Writer) int {
return 1
}
defer db.Close()
r, err := attachment.NewReconciler(db, blobs, *grace)
r, err := attachment.NewReconcilerWithRetention(db, blobs, *grace, s3Config.StagingRetention)
if err != nil {
fmt.Fprintln(errOut, "reconcile:", err)
return 2