mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 01:42:37 +08:00
Fix ConfigFollowerInterface constructor.
This commit is contained in:
parent
a752faf122
commit
bd6d765b83
@ -41,6 +41,9 @@ ConfigFollowerInterface::ConfigFollowerInterface(NetworkAddress const& remote)
|
||||
rollforward(Endpoint::wellKnown({ remote }, WLTOKEN_CONFIGFOLLOWER_ROLLFORWARD)),
|
||||
getCommittedVersion(Endpoint::wellKnown({ remote }, WLTOKEN_CONFIGFOLLOWER_GETCOMMITTEDVERSION)) {}
|
||||
|
||||
ConfigFollowerInterface::ConfigFollowerInterface(Hostname const& remote)
|
||||
: _id(deterministicRandom()->randomUniqueID()), hostname(remote) {}
|
||||
|
||||
bool ConfigFollowerInterface::operator==(ConfigFollowerInterface const& rhs) const {
|
||||
return _id == rhs._id;
|
||||
}
|
||||
|
@ -221,7 +221,7 @@ public:
|
||||
ConfigFollowerInterface();
|
||||
void setupWellKnownEndpoints();
|
||||
ConfigFollowerInterface(NetworkAddress const& remote);
|
||||
ConfigFollowerInterface(Hostname hostname) : hostname(hostname) {}
|
||||
ConfigFollowerInterface(Hostname const& hostname);
|
||||
bool operator==(ConfigFollowerInterface const& rhs) const;
|
||||
bool operator!=(ConfigFollowerInterface const& rhs) const;
|
||||
UID id() const { return _id; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user