MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / doPingRouting

Function doPingRouting

module/cluster/util.go:29–32  ·  view source on GitHub ↗
(ctx context.Context, n *cluster_dto.Node, wg *sync.WaitGroup)

Source from the content-addressed store, hash-verified

27 wg.Wait()
28}
29func doPingRouting(ctx context.Context, n *cluster_dto.Node, wg *sync.WaitGroup) {
30 n.Status = ping(ctx, n.Admins...)
31 wg.Done()
32}
33func ping(ctx context.Context, address ...string) int {
34 if len(address) == 0 {
35 return 0

Callers 1

nodeStatusFunction · 0.85

Calls 1

pingFunction · 0.85

Tested by

no test coverage detected