mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 20:58:00 +00:00
Short-lived CLI invocations were doing a full git fetch+reset on every run because the only debounce was an in-memory lastSynced field. MaxAge skips the fetch when .git/FETCH_HEAD is younger than the configured duration — git rewrites FETCH_HEAD on every successful fetch, so its mtime is effectively "last time we talked to the remote", and it survives process restart. Wire check-ip's blocklist repo to the same 47m refresh interval it uses for the background Tick.