()
| 76 | } |
| 77 | |
| 78 | function ensureFlushTimer(): void { |
| 79 | if (flushTimer) return |
| 80 | flushTimer = setInterval(() => { |
| 81 | flush().catch(() => {}) |
| 82 | }, FLUSH_INTERVAL_MS) |
| 83 | flushTimer.unref() |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Queues a request log entry for the next batch flush to Profound. |
no test coverage detected