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

Function newRecentErrorRing

server/recent_errors.go:42–47  ·  view source on GitHub ↗
(capacity int)

Source from the content-addressed store, hash-verified

40}
41
42func newRecentErrorRing(capacity int) *recentErrorRing {
43 if capacity <= 0 {
44 capacity = DefaultRecentErrorCap
45 }
46 return &recentErrorRing{buf: make([]RecentError, capacity)}
47}
48
49func (r *recentErrorRing) add(e RecentError) {
50 if r == nil {

Callers 6

NewFunction · 0.85
initConnsMapMethod · 0.85
InitMinimalServerFunction · 0.85

Calls

no outgoing calls