Store.get_event_by_offset()

This commit is contained in:
Mike Dilger 2024-02-15 08:19:14 +13:00
parent 0e218e95ef
commit eb80f9d6ba

View File

@ -73,4 +73,9 @@ impl Store {
Ok(offset)
}
/// Get an event by offset
pub fn get_event_by_offset(&self, offset: usize) -> Result<Option<Event>, Error> {
self.events.get_event_by_offset(offset)
}
}