MCPcopy Create free account
hub / github.com/PostHog/duckgres / add

Method add

server/recent_errors.go:49–60  ·  view source on GitHub ↗
(e RecentError)

Source from the content-addressed store, hash-verified

47}
48
49func (r *recentErrorRing) add(e RecentError) {
50 if r == nil {
51 return
52 }
53 r.mu.Lock()
54 r.buf[r.next] = e
55 r.next = (r.next + 1) % len(r.buf)
56 if r.n < len(r.buf) {
57 r.n++
58 }
59 r.mu.Unlock()
60}
61
62// snapshot returns up to limit most-recent errors, newest first (limit <= 0
63// returns all retained).

Callers 14

mountPeepernetesFunction · 0.80
observedPoolsFunction · 0.80
tickFunction · 0.80
podChipFunction · 0.80
reconcilePodsFunction · 0.80
renderFunction · 0.80
poolMenuFnFunction · 0.80
do_POSTMethod · 0.80
testResultSetMetadataMethod · 0.80
loadQueriesMethod · 0.80

Calls

no outgoing calls

Tested by 5

testResultSetMetadataMethod · 0.64
loadQueriesMethod · 0.64