look ahead = 10
This commit is contained in:
parent
8336bfee91
commit
f31408c029
@ -31,7 +31,7 @@ fn get_last_checked_event_id(filename: &String) -> Result<u64, Box<dyn Error>> {
|
||||
fn find_most_recent_event_id(cph_filepath: &str, last_checked: u64) -> Result<u64, Box<dyn Error>> {
|
||||
let mut check_ahead = 0;
|
||||
let mut last_checked_event_id = last_checked;
|
||||
while check_ahead < 3 {
|
||||
while check_ahead < 10 {
|
||||
let id_to_check = last_checked_event_id + 1 + check_ahead;
|
||||
println!("Checking event: {}", id_to_check);
|
||||
let (exists, is_cph_open) = check_event(id_to_check);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user