mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 05:50:31 +08:00
radicle: Don't update sync status redundantly
We were updating it even when the `head` was the same.
This commit is contained in:
@@ -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))?;
|
||||
|
||||
Reference in New Issue
Block a user