From 38a76a42deed6cb98a4c8ccf7874b4adca3e6b07 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Thu, 21 Mar 2024 17:10:37 +0100 Subject: [PATCH] radicle: Don't update sync status redundantly We were updating it even when the `head` was the same. --- radicle/src/node/seed/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicle/src/node/seed/store.rs b/radicle/src/node/seed/store.rs index 37409817..7f192a3e 100644 --- a/radicle/src/node/seed/store.rs +++ b/radicle/src/node/seed/store.rs @@ -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))?;