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