broker: Deprecate NodeID(), use SetNodeId()

This commit is contained in:
Arne Welzel 2025-04-17 10:16:14 +02:00
parent bfb033622f
commit cb243e2d28
3 changed files with 4 additions and 2 deletions

View file

@ -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 =

View file

@ -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.

View file

@ -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());
%}