MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / send

Method send

kayak/tracker.go:79–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79func (t *rpcTracker) send() {
80 if !atomic.CompareAndSwapUint32(&t.sent, 0, 1) {
81 return
82 }
83
84 for i := range t.nodes {
85 t.wg.Add(1)
86 go t.callSingle(i)
87 }
88
89 if t.minCount == 0 {
90 t.done()
91 }
92}
93
94func (t *rpcTracker) callSingle(idx int) {
95 caller := t.r.TrackerNewCallerFunc(t.nodes[idx])

Callers 2

TestTrackerFunction · 0.80
applyRPCMethod · 0.80

Calls 3

callSingleMethod · 0.95
doneMethod · 0.95
AddMethod · 0.45

Tested by 1

TestTrackerFunction · 0.64