From 07bb8800bcd0db431a4dacdf86f68d2cae5226fb Mon Sep 17 00:00:00 2001 From: Larko <59736843+Larkooo@users.noreply.github.com> Date: Sat, 4 Jan 2025 04:40:34 +0700 Subject: [PATCH] fix(torii-core): correct parallelized task hash (#2860) --- crates/torii/core/src/engine.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/torii/core/src/engine.rs b/crates/torii/core/src/engine.rs index f4279e6a5d..46d84cc57f 100644 --- a/crates/torii/core/src/engine.rs +++ b/crates/torii/core/src/engine.rs @@ -859,8 +859,10 @@ impl Engine

{ let task_identifier = match processor.event_key().as_str() { "StoreSetRecord" | "StoreUpdateRecord" | "StoreUpdateMember" | "StoreDelRecord" => { let mut hasher = DefaultHasher::new(); - event.keys[0].hash(&mut hasher); + // model selector event.keys[1].hash(&mut hasher); + // entity id + event.keys[2].hash(&mut hasher); hasher.finish() } _ => 0,