(ctx context.Context, address ...string)
| 31 | wg.Done() |
| 32 | } |
| 33 | func ping(ctx context.Context, address ...string) int { |
| 34 | if len(address) == 0 { |
| 35 | return 0 |
| 36 | } |
| 37 | err := admin.Admin(address...).Ping(ctx) |
| 38 | if err != nil { |
| 39 | return 0 |
| 40 | } |
| 41 | |
| 42 | return 1 |
| 43 | } |
no test coverage detected