Skip to content

Commit

Permalink
fix: mutable manager.remove_obsolete_receipts
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Asseman <[email protected]>
  • Loading branch information
aasseman committed Oct 30, 2023
1 parent 656fc15 commit ca1a01e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tap_core/src/tap_manager/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tap_core/src/tap_manager/test/manager_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ca1a01e

Please sign in to comment.