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

Method reset

backend/xray/startup_diagnostics.go:29–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func (r *startupLogRing) reset() {
30 r.next = 0
31 r.full = false
32 for i := range r.lines {
33 r.lines[i] = ""
34 }
35}
36
37func (r *startupLogRing) add(line string) {
38 if len(r.lines) == 0 {

Callers 3

StartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected