From 446bde215532937d492fc063b1264afde4bda400 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 1bd7026d..c4257ea1 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 615aa54d..3586592c 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 127573e6..19d466ff 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 ab191dc6..7d401b59 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,