mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
broker: Deprecate NodeID(), use SetNodeId()
This commit is contained in:
parent
bfb033622f
commit
cb243e2d28
3 changed files with 4 additions and 2 deletions
|
@ -418,6 +418,8 @@ void Manager::DoInitPostScript() {
|
|||
|
||||
bstate->subscriber.add_topic(broker::topic::store_events(), true);
|
||||
|
||||
SetNodeId(broker::to_string(bstate->endpoint.node_id()));
|
||||
|
||||
InitializeBrokerStoreForwarding();
|
||||
|
||||
num_peers_metric =
|
||||
|
|
|
@ -178,7 +178,7 @@ public:
|
|||
/**
|
||||
* @return a unique identifier for this broker endpoint.
|
||||
*/
|
||||
std::string NodeID() const;
|
||||
[[deprecated("Remove in v8.1: Use Backend::NodeId() instead.")]] std::string NodeID() const;
|
||||
|
||||
/**
|
||||
* Send an identifier's value to interested peers.
|
||||
|
|
|
@ -262,5 +262,5 @@ function Broker::__peers%(%): PeerInfos
|
|||
function Broker::__node_id%(%): string
|
||||
%{
|
||||
zeek::Broker::Manager::ScriptScopeGuard ssg;
|
||||
return zeek::make_intrusive<zeek::StringVal>(broker_mgr->NodeID());
|
||||
return zeek::make_intrusive<zeek::StringVal>(broker_mgr->NodeId());
|
||||
%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue