another compiler fix, reduced the size of the endpointNotFound map

This commit is contained in:
Evan Tschannen 2020-05-20 12:30:26 -07:00
parent 9d6d916cef
commit 5f979c0178
2 changed files with 1 additions and 12 deletions

View File

@ -113,7 +113,7 @@ void SimpleFailureMonitor::endpointNotFound(Endpoint const& endpoint) {
.detail("Address", endpoint.getPrimaryAddress())
.detail("Token", endpoint.token);
failedEndpoints.insert(endpoint);
endpointKnownFailed.set(endpoint, true);
endpointKnownFailed.trigger(endpoint);
}
void SimpleFailureMonitor::notifyDisconnect(NetworkAddress const& address) {

View File

@ -85,17 +85,6 @@ void ISimulator::displayWorkers() const
return;
}
namespace std {
template<>
class hash<Endpoint> {
public:
size_t operator()(const Endpoint &s) const
{
return crc32c_append(0, (const uint8_t*)&s, sizeof(s));
}
};
}
const UID TOKEN_ENDPOINT_NOT_FOUND(-1, -1);
ISimulator* g_pSimulator = 0;