| 37 | namespace client { |
| 38 | |
| 39 | TabletClient::TabletClient(const std::string& endpoint, const std::string& real_endpoint) |
| 40 | : endpoint_(endpoint), real_endpoint_(endpoint), client_(endpoint) { |
| 41 | if (!real_endpoint.empty()) { |
| 42 | real_endpoint_ = real_endpoint; |
| 43 | client_ = ::fedb::RpcClient<::fedb::api::TabletServer_Stub>(real_endpoint); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | TabletClient::TabletClient(const std::string& endpoint, const std::string& real_endpoint, |
| 48 | bool use_sleep_policy) |