From ca1a01e8571f9c65a6b58efbb4964b568c03e6ac Mon Sep 17 00:00:00 2001 From: Alexis Asseman Date: Tue, 17 Oct 2023 19:39:11 -0700 Subject: [PATCH] fix: mutable manager.remove_obsolete_receipts Signed-off-by: Alexis Asseman --- tap_core/src/tap_manager/manager.rs | 2 +- tap_core/src/tap_manager/test/manager_test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tap_core/src/tap_manager/manager.rs b/tap_core/src/tap_manager/manager.rs index 5fb3ce41..dd984a75 100644 --- a/tap_core/src/tap_manager/manager.rs +++ b/tap_core/src/tap_manager/manager.rs @@ -151,7 +151,7 @@ impl< /// /// Returns [`Error::AdapterError`] if there are any errors while retrieving last RAV or removing receipts /// - pub async fn remove_obsolete_receipts(&mut self) -> Result<(), Error> { + pub async fn remove_obsolete_receipts(&self) -> Result<(), Error> { match self.get_previous_rav().await? { Some(last_rav) => { self.receipt_storage_adapter diff --git a/tap_core/src/tap_manager/test/manager_test.rs b/tap_core/src/tap_manager/test/manager_test.rs index 8aebdc5a..857a891a 100644 --- a/tap_core/src/tap_manager/test/manager_test.rs +++ b/tap_core/src/tap_manager/test/manager_test.rs @@ -404,7 +404,7 @@ mod manager_unit_test { // give receipt 5 second variance for min start time let starting_min_timestamp = get_current_timestamp_u64_ns().unwrap() - 500000000; - let mut manager = Manager::new( + let manager = Manager::new( domain_separator.clone(), escrow_adapter, receipt_checks_adapter,