Commit a5c0e4b
authored
chore: use saturating sub with max_ttl computation (#1792)
### What
Use `saturating_sub` when computing `max_ttl`.
### Why
Add another defense layer to potential misconfigurations, and improve
consistency with math usage in the repository.
Closes #1791
### Known limitations
None1 parent 0e14f5c commit a5c0e4b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments