mirror of
https://github.com/mikedilger/chorus.git
synced 2026-05-03 06:51:42 +00:00
Print count of events on startup
This commit is contained in:
parent
ac8e508a47
commit
dbfa4bae2b
@ -75,14 +75,19 @@ impl Store {
|
|||||||
.types::<UnalignedSlice<u8>, Unit>()
|
.types::<UnalignedSlice<u8>, Unit>()
|
||||||
.name("deleted-events")
|
.name("deleted-events")
|
||||||
.create(&mut txn)?;
|
.create(&mut txn)?;
|
||||||
txn.commit()?;
|
|
||||||
|
|
||||||
log::info!("Store is setup");
|
if let Ok(count) = ids.len(&txn) {
|
||||||
|
log::info!("{count} events in storage");
|
||||||
|
}
|
||||||
|
|
||||||
|
txn.commit()?;
|
||||||
|
|
||||||
let event_map_file = format!("{}/event.map", data_directory);
|
let event_map_file = format!("{}/event.map", data_directory);
|
||||||
|
|
||||||
|
let events = EventStore::new(event_map_file)?;
|
||||||
|
|
||||||
Ok(Store {
|
Ok(Store {
|
||||||
events: EventStore::new(event_map_file)?,
|
events,
|
||||||
env,
|
env,
|
||||||
ids,
|
ids,
|
||||||
akci,
|
akci,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user