(sha string)
| 953 | } |
| 954 | |
| 955 | func (h *commitServiceHandler) rememberMiss(sha string) { |
| 956 | h.commitMu.Lock() |
| 957 | h.missCache[sha] = time.Now() |
| 958 | h.commitMu.Unlock() |
| 959 | } |
| 960 | |
| 961 | // sweepMisses periodically drops expired negative-cache entries so missCache |
| 962 | // cannot grow without bound as distinct bogus shas arrive. Intended to run in |
no test coverage detected