Skip to content

Commit 3f744ed

Browse files
committed
refactor: read receipts based on allocation type
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent 4e62e7f commit 3f744ed

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

crates/tap-agent/src/tap/context/receipt.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn rangebounds_to_pgrange<R: RangeBounds<u64>>(range: R) -> PgRange<BigDecimal>
7070
}
7171

7272
#[async_trait::async_trait]
73-
impl<T: Send + Sync> ReceiptRead<TapReceipt> for TapAgentContext<T> {
73+
impl ReceiptRead<TapReceipt> for TapAgentContext<Legacy> {
7474
type AdapterError = AdapterError;
7575

7676
async fn retrieve_receipts_in_timestamp_range<R: RangeBounds<u64> + Send>(
@@ -187,6 +187,19 @@ impl ReceiptDelete for TapAgentContext<Legacy> {
187187
}
188188
}
189189

190+
#[async_trait::async_trait]
191+
impl ReceiptRead<TapReceipt> for TapAgentContext<Horizon> {
192+
type AdapterError = AdapterError;
193+
194+
async fn retrieve_receipts_in_timestamp_range<R: RangeBounds<u64> + Send>(
195+
&self,
196+
_timestamp_range_ns: R,
197+
_receipts_limit: Option<u64>,
198+
) -> Result<Vec<CheckingReceipt>, Self::AdapterError> {
199+
unimplemented!()
200+
}
201+
}
202+
190203
#[async_trait::async_trait]
191204
impl ReceiptDelete for TapAgentContext<Horizon> {
192205
type AdapterError = AdapterError;

0 commit comments

Comments
 (0)