added companie mapping with yahoo tickers
This commit is contained in:
@@ -116,7 +116,7 @@ pub async fn build_event_index(chunks: &[ChunkInfo]) -> anyhow::Result<Vec<Event
|
||||
Ok(index)
|
||||
}
|
||||
|
||||
/// NEW: Look up a specific event by loading only its chunk
|
||||
/// Look up a specific event by loading only its chunk
|
||||
pub async fn lookup_event_by_key(key: &str, index: &[EventIndex]) -> anyhow::Result<Option<EconomicEvent>> {
|
||||
// Find which chunk contains this event
|
||||
let entry = index.iter().find(|e| e.key == key);
|
||||
|
||||
Reference in New Issue
Block a user