Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Sep 18, 2024
1 parent bfaf9ff commit 9defeb5
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/aspen/import_alpenrose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ pub async fn new_rt_data(

//let alerts hashmap
let mut alerts: AHashMap<String, AspenisedAlert> = AHashMap::new();


let mut impacted_route_id_to_alert_ids: AHashMap<String, Vec<String>> = AHashMap::new();
let impacted_stop_id_to_alert_ids: AHashMap<String, Vec<String>> = AHashMap::new();
Expand Down Expand Up @@ -494,20 +493,18 @@ pub async fn new_rt_data(

//vehicle labels to gtfs ids


for (key, vehicle_gtfs) in aspenised_vehicle_positions.iter() {
if let Some(vehicle_data) = &vehicle_gtfs.vehicle {
if let Some(label) = &vehicle_data.label {
gtfs_vehicle_labels_to_ids.insert(label.clone(), key.clone());
}
}
}

}

//Insert data back into process-wide authoritative_data_store
//Insert data back into process-wide authoritative_data_store

match authoritative_data_store.entry(chateau_id.clone()) {
match authoritative_data_store.entry(chateau_id.clone()) {
scc::hash_map::Entry::Occupied(mut oe) => {
let mut data = oe.get_mut();
*data = AspenisedData {
Expand Down Expand Up @@ -541,10 +538,7 @@ pub async fn new_rt_data(
}
}

println!(
"Updated Chateau {}",
chateau_id,
);
println!("Updated Chateau {}", chateau_id,);

Ok(true)
}
Expand Down

0 comments on commit 9defeb5

Please sign in to comment.