mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-09 05:19:03 +00:00
Simplify Event construction
This commit is contained in:
parent
638a094168
commit
266f620140
8 changed files with 27 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue