| 486 | } |
| 487 | |
| 488 | std::string ClientLeaderRegInterface::getAddressString() const { |
| 489 | if (hostname.present()) { |
| 490 | return hostname.get().toString(); |
| 491 | } else { |
| 492 | return getLeader.getEndpoint().getPrimaryAddress().toString(); |
| 493 | } |
| 494 | } |
| 495 | |
| 496 | // Nominee is the worker among all workers that are considered as leader by one coordinator |
| 497 | // This function contacts a coordinator coord to ask who is its nominee. |
no test coverage detected