mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-04 10:45:50 +00:00
Remove using namespace declarations at namespace scope in headers
This commit is contained in:
@@ -766,6 +766,7 @@ void NetworkOPsImp::processHeartbeatTimer ()
|
||||
|
||||
void NetworkOPsImp::processClusterTimer ()
|
||||
{
|
||||
using namespace std::chrono_literals;
|
||||
bool const update = app_.cluster().update(
|
||||
app_.nodeIdentity().first,
|
||||
"",
|
||||
@@ -1780,6 +1781,7 @@ void NetworkOPsImp::pubPeerStatus (
|
||||
|
||||
void NetworkOPsImp::setMode (OperatingMode om)
|
||||
{
|
||||
using namespace std::chrono_literals;
|
||||
if (om == omCONNECTED)
|
||||
{
|
||||
if (app_.getLedgerMaster ().getValidatedLedgerAge () < 1min)
|
||||
@@ -2314,6 +2316,7 @@ Json::Value NetworkOPsImp::getServerInfo (bool human, bool admin, bool counters)
|
||||
auto closeTime = app_.timeKeeper().closeTime();
|
||||
if (lCloseTime <= closeTime)
|
||||
{
|
||||
using namespace std::chrono_literals;
|
||||
auto age = closeTime - lCloseTime;
|
||||
if (age < 1000000s)
|
||||
l[jss::age] = Json::UInt (age.count());
|
||||
|
||||
Reference in New Issue
Block a user