configuredExpressionNodeLimit returns the effective expression node limit. A zero value means "use default".
()
| 466 | // configuredExpressionNodeLimit returns the effective expression node limit. |
| 467 | // A zero value means "use default". |
| 468 | func (e *Env) configuredExpressionNodeLimit() int { |
| 469 | if l := e.limits[limitExpressionNodeCount]; l != 0 { |
| 470 | return l |
| 471 | } |
| 472 | return 100_000 |
| 473 | } |
| 474 | |
| 475 | // Compile combines the Parse and Check phases CEL program compilation to produce an Ast and |
| 476 | // associated issues. |