Skip to content

Commit

Permalink
Make fn pi pub in mrtin
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiKE committed Oct 29, 2024
1 parent ecf075c commit 1d692be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions mrtin/src/bin/test_store/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ fn insert<T: rotonda_store::Meta>(
prefix,
record,
None
).inspect_err(|e| eprintln!("{e}"))
).inspect_err(|e| eprintln!("Error in test_store: {e}"))
}

fn main() {
Expand Down Expand Up @@ -198,9 +198,15 @@ fn main() {

}
if !args.parse_only {
let threading = if args.mt {
" (multi-threaded)"
} else {
" (single-threaded)"
};
eprintln!(
"inserted {} routes, took {}ms, total for this file {}ms",
"inserted {} routes{}, took {}ms, total for this file {}ms",
num_routes,
threading,
t_prev.elapsed().as_millis(),
t_0.elapsed().as_millis(),
);
Expand Down
2 changes: 1 addition & 1 deletion mrtin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ impl<'a> MrtFile<'a> {
)
}

fn pi(&self) -> PeerIndex {
pub fn pi(&self) -> PeerIndex {
let mut parser = Parser::from_ref(&self.raw);
Self::extract_peer_index_table(&mut parser).unwrap()
}
Expand Down

0 comments on commit 1d692be

Please sign in to comment.