Commit c166626 1 parent ad1605b commit c166626 Copy full SHA for c166626
File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,13 @@ impl Actor for SenderAllocation {
260
260
unaggreated_fees. clone ( ) ,
261
261
) ) ?;
262
262
}
263
+
264
+ UNAGGREGATED_FEES
265
+ . with_label_values ( & [
266
+ & state. sender . to_string ( ) ,
267
+ & state. allocation_id . to_string ( ) ,
268
+ ] )
269
+ . set ( state. unaggregated_fees . value as f64 ) ;
263
270
}
264
271
// we use a blocking call here to ensure that only one RAV request is running at a time.
265
272
SenderAllocationMessage :: TriggerRAVRequest ( reply) => {
@@ -279,11 +286,6 @@ impl Actor for SenderAllocation {
279
286
}
280
287
}
281
288
282
- // We expect the value to change for every received receipt, and after every RAV request.
283
- UNAGGREGATED_FEES
284
- . with_label_values ( & [ & state. sender . to_string ( ) , & state. allocation_id . to_string ( ) ] )
285
- . set ( state. unaggregated_fees . value as f64 ) ;
286
-
287
289
Ok ( ( ) )
288
290
}
289
291
}
@@ -575,6 +577,9 @@ impl SenderAllocationState {
575
577
RAVS_CREATED
576
578
. with_label_values ( & [ & self . sender . to_string ( ) , & self . allocation_id . to_string ( ) ] )
577
579
. inc ( ) ;
580
+ UNAGGREGATED_FEES
581
+ . with_label_values ( & [ & self . sender . to_string ( ) , & self . allocation_id . to_string ( ) ] )
582
+ . set ( self . unaggregated_fees . value as f64 ) ;
578
583
579
584
Ok ( response. data )
580
585
}
You can’t perform that action at this time.
0 commit comments