| 1975 | } |
| 1976 | |
| 1977 | void DatabaseContext::updateFailedEndpointRefreshTime(const Endpoint& endpoint) { |
| 1978 | if (failedEndpointsOnHealthyServersInfo.find(endpoint) == failedEndpointsOnHealthyServersInfo.end()) { |
| 1979 | // The endpoint is not failed. Nothing to update. |
| 1980 | return; |
| 1981 | } |
| 1982 | failedEndpointsOnHealthyServersInfo[endpoint].lastRefreshTime = now(); |
| 1983 | } |
| 1984 | |
| 1985 | Optional<EndpointFailureInfo> DatabaseContext::getEndpointFailureInfo(const Endpoint& endpoint) { |
| 1986 | if (failedEndpointsOnHealthyServersInfo.find(endpoint) == failedEndpointsOnHealthyServersInfo.end()) { |
no test coverage detected