Skip to content

Commit

Permalink
fixed debug endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinrp committed Aug 26, 2023
1 parent c914061 commit 2c13f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/server/src/api/debug/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ async fn get_package_info(
.get_latest_checkpoint()
.await
.context("get_latest_checkpoint")?;
let checkpoint_id = Hash::<Sha256>::of(&checkpoint.as_ref().checkpoint).into();
let checkpoint_log_length = checkpoint.as_ref().checkpoint.log_length;

let log_id = LogId::package_log::<Sha256>(&package_id);
let records = store
.get_package_records(&log_id, &checkpoint_id, None, u16::MAX)
.get_package_records(&log_id, checkpoint_log_length, None, u16::MAX)
.await
.context("get_package_records")?;

Expand Down

0 comments on commit 2c13f63

Please sign in to comment.