MCPcopy
hub / github.com/cortexlabs/cortex / Append

Method Append

pkg/proxy/request_stats.go:35–39  ·  view source on GitHub ↗
(val int64)

Source from the content-addressed store, hash-verified

33}
34
35func (s *RequestStats) Append(val int64) {
36 s.Lock()
37 defer s.Unlock()
38 s.counts = append(s.counts, val)
39}
40
41func (s *RequestStats) GetAllAndDelete() []int64 {
42 var output []int64

Callers 2

mainFunction · 0.95
appendValFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected