Skip to content

Commit 28dbe33

Browse files
committed
linting
1 parent b30d710 commit 28dbe33

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

validator_client/validator_services/src/attestation_service.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,16 @@ impl<S: ValidatorStore + 'static, T: SlotClock + 'static> AttestationService<S,
207207
match self.spawn_attestation_tasks(slot_duration, beacon_node_index) {
208208
Ok(_) => {
209209
*last_slot = current_slot;
210-
let duration = if let Some(duration) = self.slot_clock.duration_to_next_slot() {
211-
duration
212-
} else {
213-
error!("Failed to read slot clock");
214-
slot_duration
215-
};
210+
let duration =
211+
if let Some(duration) = self.slot_clock.duration_to_next_slot() {
212+
duration
213+
} else {
214+
error!("Failed to read slot clock");
215+
slot_duration
216+
};
216217

217218
sleep(duration).await;
218-
},
219+
}
219220
Err(e) => {
220221
crit!(error = e, "Failed to spawn attestation tasks")
221222
}

0 commit comments

Comments
 (0)