From c7348297f76e3b40b67d4881a7343985527106c4 Mon Sep 17 00:00:00 2001 From: Alexis Asseman Date: Fri, 10 Nov 2023 13:07:03 -0800 Subject: [PATCH] refactor: cleanup Signed-off-by: Alexis Asseman --- tap-agent/src/tap/receipt_checks_adapter.rs | 2 +- tap-agent/src/tap/receipt_storage_adapter.rs | 4 ++-- tap-agent/src/tap/sender_allocation_relationship.rs | 1 - tap-agent/src/tap/sender_allocation_relationships_manager.rs | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tap-agent/src/tap/receipt_checks_adapter.rs b/tap-agent/src/tap/receipt_checks_adapter.rs index 1bd7026df..c4257ea1b 100644 --- a/tap-agent/src/tap/receipt_checks_adapter.rs +++ b/tap-agent/src/tap/receipt_checks_adapter.rs @@ -72,7 +72,7 @@ impl ReceiptChecksAdapterTrait for ReceiptChecksAdapter { _receipt: &EIP712SignedMessage, _receipt_id: u64, ) -> Result { - panic!("Not implemented."); + unimplemented!(); } async fn is_valid_allocation_id( diff --git a/tap-agent/src/tap/receipt_storage_adapter.rs b/tap-agent/src/tap/receipt_storage_adapter.rs index 615aa54da..3586592c3 100644 --- a/tap-agent/src/tap/receipt_storage_adapter.rs +++ b/tap-agent/src/tap/receipt_storage_adapter.rs @@ -91,7 +91,7 @@ impl ReceiptStorageAdapterTrait for ReceiptStorageAdapter { /// We don't need this method in TAP Agent. async fn store_receipt(&self, _receipt: ReceivedReceipt) -> Result { - panic!("Not implemented"); + unimplemented!(); } async fn retrieve_receipts_in_timestamp_range + Send>( @@ -131,7 +131,7 @@ impl ReceiptStorageAdapterTrait for ReceiptStorageAdapter { _receipt_id: u64, _receipt: ReceivedReceipt, ) -> Result<(), Self::AdapterError> { - panic!("Not implemented"); + unimplemented!(); } async fn remove_receipts_in_timestamp_range + Send>( diff --git a/tap-agent/src/tap/sender_allocation_relationship.rs b/tap-agent/src/tap/sender_allocation_relationship.rs index 01e41a88b..b7e1a49d1 100644 --- a/tap-agent/src/tap/sender_allocation_relationship.rs +++ b/tap-agent/src/tap/sender_allocation_relationship.rs @@ -438,7 +438,6 @@ mod tests { config: None, ethereum: config::Ethereum { indexer_address: INDEXER.1, - ..Default::default() }, tap: config::Tap { rav_request_trigger_value: 100, diff --git a/tap-agent/src/tap/sender_allocation_relationships_manager.rs b/tap-agent/src/tap/sender_allocation_relationships_manager.rs index 9365666db..4e0e8f4a4 100644 --- a/tap-agent/src/tap/sender_allocation_relationships_manager.rs +++ b/tap-agent/src/tap/sender_allocation_relationships_manager.rs @@ -326,7 +326,6 @@ mod tests { config: None, ethereum: config::Ethereum { indexer_address: INDEXER.1, - ..Default::default() }, tap: config::Tap { rav_request_trigger_value: 100,