Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mutable manager.remove_obsolete_receipts #185

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading