radicle: Don't update sync status redundantly

We were updating it even when the `head` was the same.
This commit is contained in:
cloudhead 2024-03-21 17:10:37 +01:00
parent 9f4227d378
commit 38a76a42de
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ impl Store for Database {
VALUES (?1, ?2, ?3, ?4)
ON CONFLICT DO UPDATE
SET head = ?3, timestamp = ?4
WHERE timestamp < ?4",
WHERE timestamp < ?4 AND head <> ?3",
)?;
stmt.bind((1, rid))?;
stmt.bind((2, nid))?;