Skip to content

Commit

Permalink
renamed from id to actor_id
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Aug 24, 2023
1 parent 30e0a74 commit 81bfa3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/corro-agent/src/broadcast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 81bfa3d

Please sign in to comment.