MCPcopy Create free account
hub / github.com/PasarGuard/node / newStartupLogRing

Function newStartupLogRing

backend/xray/startup_diagnostics.go:19–27  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

17}
18
19func newStartupLogRing(size int) *startupLogRing {
20 if size <= 0 {
21 size = 1
22 }
23
24 return &startupLogRing{
25 lines: make([]string, size),
26 }
27}
28
29func (r *startupLogRing) reset() {
30 r.next = 0

Callers 3

TestStartupLogRingTailFunction · 0.85
NewXRayCoreFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestStartupLogRingTailFunction · 0.68