summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-12 23:20:45 +0300
committerPaul Buetow <paul@buetow.org>2026-05-12 23:20:45 +0300
commitd41c192150391bb5da9b38b0ea84dc0f1ea65e48 (patch)
tree03744e81d7fa513526f9d9fa95ce0daaf839bb7c /cmd
parentd199899dc1460d9dd72c6fca343f0030d632a635 (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 'cmd')
0 files changed, 0 insertions, 0 deletions