diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-12 23:20:45 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-12 23:20:45 +0300 |
| commit | d41c192150391bb5da9b38b0ea84dc0f1ea65e48 (patch) | |
| tree | 03744e81d7fa513526f9d9fa95ce0daaf839bb7c /internal/runtime_builder.go | |
| parent | d199899dc1460d9dd72c6fca343f0030d632a635 (diff) | |
extract generic trimLRU helper to eliminate DRY violation in eventloop_state.go
Replace three near-identical trimOldest* functions with a single generic
trimLRU[K comparable, V any] helper; the three wrappers now delegate to it,
with trimOldestPendingPairs passing a cleanup callback for Recycle.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/runtime_builder.go')
0 files changed, 0 insertions, 0 deletions
