mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Template abstract_clock on Clock:
The abstract_clock is now templated on a type meeting the requirements of the Clock concept. It inherits the nested types of the Clock on which it is based. This resolves a problem with the original design which broke the type-safety of time_point from different abstract clocks.
This commit is contained in:
committed by
Nik Bougalis
parent
7d72dfe0be
commit
55637f7508
@@ -228,7 +228,7 @@ disallowRenegotiation (SSL const* ssl, bool isNew)
|
||||
|
||||
auto& sd (static_data.get ());
|
||||
std::lock_guard <std::mutex> lock (sd.lock);
|
||||
auto const expired (sd.set.clock().now() - std::chrono::minutes (4));
|
||||
auto const expired (sd.set.clock().now() - std::chrono::minutes(4));
|
||||
|
||||
// Remove expired entries
|
||||
for (auto iter (sd.set.chronological.begin ());
|
||||
|
||||
Reference in New Issue
Block a user