Skip to content

Commit 309ff7c

Browse files
committed
rename initial to expected slot
1 parent e2ac449 commit 309ff7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tasks/submit/task.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ impl SubmitTask {
131131
) -> eyre::Result<ControlFlow> {
132132
let submitting_start_time = Instant::now();
133133
let now = utils::now();
134-
let (initial_slot, start, end) = self.calculate_slot_window();
135-
debug!(initial_slot, start, end, now, "calculating target slot window");
134+
let (expected_slot, start, end) = self.calculate_slot_window();
135+
debug!(expected_slot, start, end, now, "calculating target slot window");
136136

137137
let mut req = bumpable.req().clone();
138138

@@ -147,7 +147,7 @@ impl SubmitTask {
147147
let inbound_result = match self.send_transaction(req).instrument(span.clone()).await {
148148
Ok(control_flow) => control_flow,
149149
Err(error) => {
150-
if let Some(value) = self.slot_still_valid(initial_slot) {
150+
if let Some(value) = self.slot_still_valid(expected_slot) {
151151
return value;
152152
}
153153
// Log error and retry
@@ -160,7 +160,7 @@ impl SubmitTask {
160160

161161
match inbound_result {
162162
ControlFlow::Retry => {
163-
if let Some(value) = self.slot_still_valid(initial_slot) {
163+
if let Some(value) = self.slot_still_valid(expected_slot) {
164164
return value;
165165
}
166166
// bump the req

0 commit comments

Comments
 (0)