File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -269,17 +269,9 @@ impl BuildQueue {
269
269
let mut conn = self . db . get ( ) ?;
270
270
let diff = index. diff ( ) ?;
271
271
272
- let Some ( last_seen_reference) = self . last_seen_reference ( ) ? else {
273
- // we should always have a last seen reference in the database, other than when
274
- // initialising a new deployment (e.g. dev/test/staging), in those cases we don't want
275
- // to rebuild the entire world, so we get crates-index-diff to fetch the current state
276
- // then use the current head as the base and will only start building new crates from
277
- // now on
278
- let ( _, oid) = diff. peek_changes_ordered ( ) ?;
279
- warn ! ( "no last_seen_reference in database, setting to current head {oid}" ) ;
280
- self . set_last_seen_reference ( oid) ?;
281
- return Ok ( 0 ) ;
282
- } ;
272
+ let last_seen_reference = self
273
+ . last_seen_reference ( ) ?
274
+ . context ( "no last_seen_reference set in database" ) ?;
283
275
diff. set_last_seen_reference ( last_seen_reference) ?;
284
276
285
277
let ( mut changes, new_reference) = diff. peek_changes_ordered ( ) ?;
You can’t perform that action at this time.
0 commit comments