MCPcopy Create free account
hub / github.com/easyp-tech/server / rememberMiss

Method rememberMiss

internal/connect/commits.go:955–959  ·  view source on GitHub ↗
(sha string)

Source from the content-addressed store, hash-verified

953}
954
955func (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

Callers 1

probeCommitIDMethod · 0.95

Calls 2

UnlockMethod · 0.80
LockMethod · 0.65

Tested by

no test coverage detected