From 81bfa3d0cbabddea36fd384a53fe073423f71982 Mon Sep 17 00:00:00 2001 From: Jerome Gravel-Niquet Date: Thu, 24 Aug 2023 16:24:03 -0400 Subject: [PATCH] renamed from id to actor_id --- crates/corro-agent/src/broadcast/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/corro-agent/src/broadcast/mod.rs b/crates/corro-agent/src/broadcast/mod.rs index c9045dbc..38e01fce 100644 --- a/crates/corro-agent/src/broadcast/mod.rs +++ b/crates/corro-agent/src/broadcast/mod.rs @@ -247,7 +247,7 @@ pub fn runtime_loop( for (id, address, state, foca_state) in states { let db_res = tx.prepare_cached( " - INSERT INTO __corro_members (id, address, state, foca_state) + INSERT INTO __corro_members (actor_id, address, state, foca_state) VALUES (?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET address = excluded.address, @@ -383,7 +383,7 @@ pub fn runtime_loop( trace!( "updating {id} {address} as {state} w/ state: {foca_state:?}", ); - let upserted = tx.prepare_cached("INSERT INTO __corro_members (id, address, state, foca_state) + let upserted = tx.prepare_cached("INSERT INTO __corro_members (actor_id, address, state, foca_state) VALUES (?, ?, ?, ?) ON CONFLICT (id) DO UPDATE SET address = excluded.address,