Skip to content

Commit

Permalink
fix(torii-core): correct parallelized task hash (dojoengine#2860)
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo authored Jan 3, 2025
1 parent 38f68db commit 07bb880
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/torii/core/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,10 @@ impl<P: Provider + Send + Sync + std::fmt::Debug + 'static> Engine<P> {
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,
Expand Down

0 comments on commit 07bb880

Please sign in to comment.