Appease clang (fixes for minor compilation errors)

pull/1312/head
Stephen Shelton 4 years ago
parent fd230dd93b
commit 186a35c0e2
No known key found for this signature in database
GPG Key ID: EE4BADACCE8B631C

@ -34,7 +34,7 @@ namespace llarp
}
bool
PeerStats::operator==(const PeerStats& other)
PeerStats::operator==(const PeerStats& other) const
{
return routerId == other.routerId and numConnectionAttempts == other.numConnectionAttempts
and numConnectionSuccesses == other.numConnectionSuccesses

@ -44,7 +44,7 @@ namespace llarp
PeerStats&
operator+=(const PeerStats& other);
bool
operator==(const PeerStats& other);
operator==(const PeerStats& other) const;
util::StatusObject
toJson() const;

@ -184,7 +184,6 @@ TEST_CASE("Test PeerDb handleGossipedRC expiry calcs", "[PeerDb]")
// received "unhealthily" (after rc2 expires)
const llarp_time_t s3 = s2 + 8h;
const llarp_time_t r3 = e2 + 1h; // received after e2
const llarp_time_t e3 = s3 + rcLifetime;
llarp::RouterContact rc3;
rc3.pubkey = llarp::PubKey(id);
rc3.last_updated = s3;

Loading…
Cancel
Save