MCPcopy
hub / github.com/tinode/chat / statsSet

Function statsSet

server/stats.go:100–107  ·  view source on GitHub ↗

Async publish int variable.

(name string, val int64)

Source from the content-addressed store, hash-verified

98
99// Async publish int variable.
100func statsSet(name string, val int64) {
101 if globals.statsUpdate != nil {
102 select {
103 case globals.statsUpdate <- &varUpdate{name, val, false}:
104 default:
105 }
106 }
107}
108
109// Async publish an increment (decrement) to int variable.
110func statsInc(name string, val int) {

Callers 8

NewSessionMethod · 0.85
DeleteMethod · 0.85
EvictUserMethod · 0.85
NodeRestartedMethod · 0.85
electLeaderMethod · 0.85
runMethod · 0.85
clusterInitFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…