Skip to content

Commit 7c77a09

Browse files
committed
registry-watcher: when setting the last-seen ref, first set the db
1 parent 7d8c005 commit 7c77a09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/build_queue.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,15 @@ impl BuildQueue {
300300
}
301301
}
302302

303-
// store the last seen reference as git reference in
304-
// the local crates.io index repo.
305-
diff.set_last_seen_reference(oid)?;
306-
307303
// additionally set the reference in the database
308304
// so this survives recreating the registry watcher
309305
// server.
310306
self.set_last_seen_reference(oid)?;
311307

308+
// store the last seen reference as git reference in
309+
// the local crates.io index repo.
310+
diff.set_last_seen_reference(oid)?;
311+
312312
Ok(crates_added)
313313
}
314314

0 commit comments

Comments
 (0)