mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Refactor clock declarations in chrono.h
This commit is contained in:
@@ -62,7 +62,7 @@ namespace Validators {
|
||||
Logic::Logic (Store& store, beast::Journal journal)
|
||||
: /*store_ (store)
|
||||
, */journal_ (journal)
|
||||
, ledgers_(get_seconds_clock())
|
||||
, ledgers_(stopwatch())
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -22,11 +22,10 @@
|
||||
|
||||
#include <ripple/protocol/Protocol.h>
|
||||
#include <ripple/basics/hardened_hash.h>
|
||||
#include <ripple/basics/seconds_clock.h>
|
||||
#include <ripple/basics/chrono.h>
|
||||
#include <ripple/protocol/RippleLedgerHash.h>
|
||||
#include <ripple/validators/impl/Store.h>
|
||||
#include <ripple/validators/impl/Tuning.h>
|
||||
#include <beast/chrono/manual_clock.h>
|
||||
#include <beast/container/aged_container_utility.h>
|
||||
#include <beast/container/aged_unordered_map.h>
|
||||
#include <beast/container/aged_unordered_set.h>
|
||||
@@ -43,9 +42,6 @@ class ConnectionImp;
|
||||
|
||||
class Logic
|
||||
{
|
||||
public:
|
||||
using clock_type = beast::abstract_clock<std::chrono::steady_clock>;
|
||||
|
||||
private:
|
||||
struct LedgerMeta
|
||||
{
|
||||
|
||||
@@ -237,7 +237,7 @@ public:
|
||||
newConnection (int id) override
|
||||
{
|
||||
return std::make_unique<ConnectionImp>(
|
||||
id, logic_, get_seconds_clock());
|
||||
id, logic_, stopwatch());
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user