radicle: Don't update sync status redundantly
We were updating it even when the `head` was the same.
This commit is contained in:
parent
9f4227d378
commit
38a76a42de
|
|
@ -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))?;
|
||||
|
|
|
|||
Loading…
Reference in New Issue