Skip to content

Commit 8126ad4

Browse files
committed
Fix ordering of intermediate commits to ensure the latest comes first and is used as the authoritative source of what's latest.
1 parent c41347f commit 8126ad4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lookup.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ pub(super) async fn fetch_channel_updates<L: Deref>(delta_set: &mut DeltaSet, cl
288288
SELECT id, direction, blob_signed, CAST(EXTRACT('epoch' from seen) AS BIGINT) AS seen
289289
FROM channel_updates
290290
WHERE seen >= TO_TIMESTAMP($1)
291+
ORDER BY timestamp DESC
291292
", [last_sync_timestamp_float]).await.unwrap();
292293
let mut pinned_updates = Box::pin(intermediate_updates);
293294
log_info!(logger, "Fetched intermediate rows in {:?}", start.elapsed());

0 commit comments

Comments
 (0)