mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 01:06:48 +00:00
Cleanup the 'PeerSet' hierarchy:
This commit introduces no functional changes but cleans up the code and shrinks the surface area by removing dead and unused code, leveraging std:: alternatives to hand-rolled code and improving comments and documentation.
This commit is contained in:
committed by
Nik Bougalis
parent
d025f3fb28
commit
5b5226d518
@@ -153,18 +153,12 @@ public:
|
||||
for (auto const& val : validators)
|
||||
expectedKeys.insert(toStr(val.masterPublic));
|
||||
|
||||
// Manage single thread io_service for server
|
||||
struct Worker : BasicApp
|
||||
{
|
||||
Worker() : BasicApp(1)
|
||||
{
|
||||
}
|
||||
};
|
||||
Worker w;
|
||||
// Manage single-thread io_service for server.
|
||||
BasicApp worker{1};
|
||||
using namespace std::chrono_literals;
|
||||
NetClock::time_point const expiration{3600s};
|
||||
TrustedPublisherServer server{
|
||||
w.get_io_service(), validators, expiration, false, 1, false};
|
||||
worker.get_io_service(), validators, expiration, false, 1, false};
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// Publisher list site unavailable
|
||||
|
||||
Reference in New Issue
Block a user