Simplify Event construction

This commit is contained in:
Lukas Wirth 2025-01-05 13:00:13 +01:00
parent 638a094168
commit 266f620140
8 changed files with 27 additions and 34 deletions

View file

@ -31,11 +31,10 @@ where
tracing::info!("{:?}: executing query", database_key_index);
db.salsa_event(&|| Event {
thread_id: std::thread::current().id(),
kind: EventKind::WillExecute {
db.salsa_event(&|| {
Event::new(EventKind::WillExecute {
database_key: database_key_index,
},
})
});
// If we already executed this query once, then use the tracked-struct ids from the