Skip to content

Commit cebbe48

Browse files
Update lib/middlewares/src/metering.rs
Co-authored-by: Simon Warta <[email protected]>
1 parent 8c3eb75 commit cebbe48

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/middlewares/src/metering.rs

+4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ pub struct FunctionMetering<F: Fn(&Operator) -> u64 + Copy + Clone + Send + Sync
6060

6161
#[derive(Debug, PartialEq)]
6262
pub enum MeteringPoints {
63+
/// The given number of metering points is left for the execution.
64+
/// If the value is 0, all points are consumed and but the execution was not terminated.
6365
Remaining(u64),
66+
/// The execution was terminated because the metering points were exhausted.
67+
/// You can recover from this state by setting the points via `set_remaining_points` and restart the execution.
6468
Exhausted,
6569
}
6670

0 commit comments

Comments
 (0)