configuredExpressionNodeLimit returns the effective expression node limit. A zero value means "use default".
()
| 546 | // configuredExpressionNodeLimit returns the effective expression node limit. |
| 547 | // A zero value means "use default". |
| 548 | func (e *Env) configuredExpressionNodeLimit() int { |
| 549 | if l := e.limits[limitExpressionNodeCount]; l != 0 { |
| 550 | return l |
| 551 | } |
| 552 | return 100_000 |
| 553 | } |
| 554 | |
| 555 | // Compile combines the Parse and Check phases CEL program compilation to produce an Ast and |
| 556 | // associated issues. |