MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / snapshot

Method snapshot

internal/nodeagent/integration_test.go:44–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42func (h *integrationPushHandler) OnTracerouteHop(string, string, []byte) {}
43
44func (h *integrationPushHandler) snapshot() ([][]byte, []uint64) {
45 h.mu.Lock()
46 defer h.mu.Unlock()
47 hb := make([][]byte, len(h.helloBodies))
48 copy(hb, h.helloBodies)
49 up := make([]uint64, len(h.usagePushes))
50 copy(up, h.usagePushes)
51 return hb, up
52}
53
54// countingUsageAPI 实现 UsageSnapshotProvider,统计 reset 调用次数。
55type countingUsageAPI struct {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected