MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / NewCallStat

Function NewCallStat

internal/rpc/call_stat.go:21–25  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

19}
20
21func NewCallStat(size int) *CallStat {
22 return &CallStat{
23 size: size,
24 }
25}
26
27func (this *CallStat) Add(ok bool, costSeconds float64) {
28 var size = this.size

Callers 2

NewNodeStatusExecutorFunction · 0.92
TestNewCallStatFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestNewCallStatFunction · 0.74