()
| 42 | func (h *integrationPushHandler) OnTracerouteHop(string, string, []byte) {} |
| 43 | |
| 44 | func (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 调用次数。 |
| 55 | type countingUsageAPI struct { |
no outgoing calls
no test coverage detected