Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Nov 30, 2023
1 parent 02f2476 commit 5085593
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scheduler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl TaskStatus {
#[derive(Debug)]
pub struct TaskInner {
unique_weight: UniqueWeight,
tx: SanitizedTransaction, // actually should be Bundle
transaction: SanitizedTransaction, // actually should be Bundle
task_status: SchedulerCell<TaskStatus>,
}

Expand All @@ -95,15 +95,15 @@ impl SchedulingStateMachine {
let unique_weight = UniqueWeight::max_value() - index as UniqueWeight;
Task::new(TaskInner {
unique_weight,
tx: transaction,
transaction,
task_status: SchedulerCell::new(TaskStatus::new(locks)),
})
}
}

impl TaskInner {
pub fn transaction(&self) -> &SanitizedTransaction {
&self.tx
&self.transaction
}

fn lock_attempts_mut<'t>(&self, task_token: &'t mut TaskToken) -> &'t mut Vec<LockAttempt> {
Expand Down

0 comments on commit 5085593

Please sign in to comment.