Skip to content

Commit 08a7bb4

Browse files
committed
chore(sales): log error when datasets size is different then expected
1 parent 703921d commit 08a7bb4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

codex/sales/states/downloading.nim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ method run*(
7575
return some State(SaleErrored(error: err, reprocessSlot: false))
7676

7777
trace "Download complete"
78+
79+
if updatedReservation =? await reservations.get(reservation.id, Reservation):
80+
if updatedReservation.size != 0:
81+
error "After downloading the data there is unused capacity in Reservation"
82+
else:
83+
error "Couldn't get updated reservation"
84+
7885
return some State(SaleInitialProving())
7986
except CancelledError as e:
8087
trace "SaleDownloading.run was cancelled", error = e.msgDetail

0 commit comments

Comments
 (0)