You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tap-agent/src/tap/context/checks/allocation_id.rs
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ use anyhow::anyhow;
8
8
use eventuals::{Eventual,EventualExt};
9
9
use indexer_common::subgraph_client::{Query,SubgraphClient};
10
10
use tap_core::receipt::{
11
-
checks::{Check,CheckResult},
11
+
checks::{Check,CheckError,CheckResult},
12
12
state::Checking,
13
13
ReceiptWithState,
14
14
};
@@ -52,17 +52,20 @@ impl Check for AllocationId {
52
52
// ID. So the receipts that are received here should already have been filtered by
53
53
// allocation ID.
54
54
if allocation_id != self.allocation_id{
55
-
returnErr(anyhow!("Receipt allocation_id different from expected: allocation_id: {}, expected_allocation_id: {}", allocation_id,self.allocation_id));
55
+
returnErr(CheckError::Failed(anyhow!("Receipt allocation_id different from expected: allocation_id: {}, expected_allocation_id: {}", allocation_id,self.allocation_id)));
56
56
};
57
57
58
58
// Check that the allocation ID is not redeemed yet for this consumer
0 commit comments