mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Tidy up Resource::Manager (RIPD-362):
* Style improvements * More documentation
This commit is contained in:
committed by
Vinnie Falco
parent
28898031f0
commit
5869902f2c
@@ -30,10 +30,9 @@ struct Key
|
||||
beast::IP::Endpoint address;
|
||||
std::string name;
|
||||
|
||||
// No default constructor
|
||||
Key () = delete;
|
||||
|
||||
// Convenience constructors
|
||||
// Constructor for Inbound and Outbound (non-Admin) keys
|
||||
Key (Kind k, beast::IP::Endpoint const& addr)
|
||||
: kind(k)
|
||||
, address(addr)
|
||||
@@ -42,6 +41,7 @@ struct Key
|
||||
assert(kind != kindAdmin);
|
||||
}
|
||||
|
||||
// Constructor for Admin keys
|
||||
Key (Kind k, const std::string& n)
|
||||
: kind(k)
|
||||
, address()
|
||||
|
||||
Reference in New Issue
Block a user