Skip to content

Commit

Permalink
refine doc comment for epoch_interval
Browse files Browse the repository at this point in the history
  • Loading branch information
wlmyng committed Jan 8, 2025
1 parent ea8e1f0 commit 4e0e03b
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ pub async fn tx_interval(conn: &mut Connection<'_>, cps: Range<u64>) -> Result<R
})
}

/// Inclusive start and exclusive end range of epochs.
///
/// The two values in the tuple represent which epoch the `from` and `to` checkpoints come from,
/// respectively.
/// Returns the epochs of the given checkpoint range. `start` is the epoch of the first checkpoint
/// and `end` is the epoch of the last checkpoint.
pub async fn epoch_interval(conn: &mut Connection<'_>, cps: Range<u64>) -> Result<Range<u64>> {
let result = get_range(conn, cps).await?;

Expand Down

0 comments on commit 4e0e03b

Please sign in to comment.