Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(torii): event messages share logic entities #2186

Closed
wants to merge 1 commit into from

Conversation

Larkooo
Copy link
Collaborator

@Larkooo Larkooo commented Jul 18, 2024

refactor the event messages to behave just like entities and use the same tables but with a "event:*" prefix

@@ -172,7 +170,11 @@ impl Sql {
let namespaced_name = entity.name();
let (model_namespace, model_name) = namespaced_name.split_once('-').unwrap();

let entity_id = format!("{:#x}", poseidon_hash_many(&keys));
let entity_id = format!(
"{}{:#x}",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why should we prefix event here? Do we have conflicts possibilities?
As we want them to behave like entities, why not using the exact same way to compute the entity_id?

@glihm glihm closed this Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants