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

Function updateSample

pkg/stats/tracker_test.go:9–19  ·  view source on GitHub ↗
(tracker *Tracker, publicKey, email string, rx, tx int64, endpointIP string)

Source from the content-addressed store, hash-verified

7)
8
9func updateSample(tracker *Tracker, publicKey, email string, rx, tx int64, endpointIP string) {
10 tracker.UpdateStatsBatch([]Sample{
11 {
12 PublicKey: publicKey,
13 Email: email,
14 Rx: rx,
15 Tx: tx,
16 EndpointIP: endpointIP,
17 },
18 })
19}
20
21func TestStatsTracker_GetStats(t *testing.T) {
22 tracker := New()

Calls 1

UpdateStatsBatchMethod · 0.80

Tested by

no test coverage detected