From b44358ec33d95219058bf836bfc7a9b18f5c27fd Mon Sep 17 00:00:00 2001 From: Alexis Asseman Date: Fri, 27 Oct 2023 15:55:48 -0700 Subject: [PATCH] Revert "fix: mutable manager.remove_obsolete_receipts" This reverts commit 882ca394444b451538908b9996bf7d45869a1bb9. --- 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 a6d41bfa..5d8ccee6 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(&self) -> Result<(), Error> { + pub async fn remove_obsolete_receipts(&mut 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 857a891a..8aebdc5a 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 manager = Manager::new( + let mut manager = Manager::new( domain_separator.clone(), escrow_adapter, receipt_checks_adapter,