Skip to content

Commit

Permalink
shardtree: Correct erroneous ShardStore::get_checkpoint_at_depth do…
Browse files Browse the repository at this point in the history
…cumentation
  • Loading branch information
nuttycom committed Nov 3, 2023
1 parent c8351fc commit fbcaec2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shardtree/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ pub trait ShardStore {
/// Returns the number of checkpoints maintained by the data store
fn checkpoint_count(&self) -> Result<usize, Self::Error>;

/// Returns the position of the checkpoint, if any, along with the number of subsequent
/// checkpoints at the same position. Returns `None` if `checkpoint_depth == 0` or if
/// insufficient checkpoints exist to seek back to the requested depth.
/// Returns the id and position of the checkpoint, if any. Returns `None` if
/// `checkpoint_depth == 0` or if insufficient checkpoints exist to seek back
/// to the requested depth.
fn get_checkpoint_at_depth(
&self,
checkpoint_depth: usize,
Expand Down

0 comments on commit fbcaec2

Please sign in to comment.