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

Method errorSummary

kayak/rpc.go:26–40  ·  view source on GitHub ↗
(errs map[proto.NodeID]error)

Source from the content-addressed store, hash-verified

24)
25
26func (r *Runtime) errorSummary(errs map[proto.NodeID]error) error {
27 failNodes := make(map[proto.NodeID]error)
28
29 for s, err := range errs {
30 if err != nil {
31 failNodes[s] = err
32 }
33 }
34
35 if len(failNodes) == 0 {
36 return nil
37 }
38
39 return errors.Wrapf(kt.ErrPrepareFailed, "fail on nodes: %v", failNodes)
40}
41
42/// rpc related
43func (r *Runtime) applyRPC(l *kt.Log, minCount int) (tracker *rpcTracker) {

Callers 1

doLeaderPrepareMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected