Skip to content

Commit 55e84b2

Browse files
committed
Fix package syncing
1 parent 88e1958 commit 55e84b2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/packages/storage.gleam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ pub type DownloadsSample {
9999
DownloadsSample(time: calendar.Date, count: Int)
100100
}
101101

102-
fn gleam_package_epoch() -> Timestamp {
102+
/// A point in time before which there were no Gleam packages.
103+
pub fn gleam_package_epoch() -> Timestamp {
103104
timestamp.from_unix_seconds(1_635_092_380)
104105
}
105106

src/packages/syncing.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub fn sync_new_gleam_releases(
5353
let #(limit, mode) = case timestamp.compare(now, next_full_sync_deadline) {
5454
order.Gt | order.Eq -> {
5555
wisp.log_info("Performing full Hex sync, getting all data")
56-
#(latest_full, FullSync)
56+
#(storage.gleam_package_epoch(), FullSync)
5757
}
5858
order.Lt -> {
5959
wisp.log_info("Performing partial Hex sync, getting newly published data")

0 commit comments

Comments
 (0)