Skip to content

Commit 3b66ff8

Browse files
committed
Fix some method documentations
One did not specify it's filter and all where specifying an incorrect order of retrieval (it was change in #1669).
1 parent 085bddd commit 3b66ff8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

internal/mithril-persistence/src/database/repository/cardano_transaction_repository.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl CardanoTransactionRepository {
3535
Self { connection }
3636
}
3737

38-
/// Return all the [CardanoTransactionRecord]s in the database using chronological order.
38+
/// Return all the [CardanoTransactionRecord]s in the database.
3939
pub async fn get_all_transactions(&self) -> StdResult<Vec<CardanoTransactionRecord>> {
4040
let provider = GetCardanoTransactionProvider::new(&self.connection);
4141
let filters = WhereCondition::default();
@@ -44,7 +44,8 @@ impl CardanoTransactionRepository {
4444
Ok(transactions.collect())
4545
}
4646

47-
/// Return all the [CardanoTransactionRecord]s in the database using chronological order.
47+
/// Return all the [CardanoTransactionRecord]s in the database where block number is in the
48+
/// given range.
4849
pub async fn get_transactions_in_range_blocks(
4950
&self,
5051
range: Range<BlockNumber>,
@@ -56,8 +57,8 @@ impl CardanoTransactionRepository {
5657
Ok(transactions.collect())
5758
}
5859

59-
/// Return all the [CardanoTransactionRecord]s in the database up to the given beacon using
60-
/// order of insertion.
60+
/// Return all the [CardanoTransactionRecord]s in the database up to the given beacon.
61+
///
6162
/// Note: until we rely on block number based beacons, this function needs to compute the highest block number for the given immutable file number.
6263
pub async fn get_transactions_up_to(
6364
&self,

0 commit comments

Comments
 (0)