(&self)
| 94 | } |
| 95 | |
| 96 | pub fn ensure_current(&self) -> Result<()> { |
| 97 | if self.is_stale() { |
| 98 | return Err(miette::miette!( |
| 99 | "policy generation is stale [captured_generation:{} current_generation:{}]", |
| 100 | self.captured_generation(), |
| 101 | self.current_generation(), |
| 102 | )); |
| 103 | } |
| 104 | Ok(()) |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | /// Per-tunnel L7 policy evaluator bound to the engine generation captured when |
no test coverage detected