cluster: Add Cluster::node_id(), allow redef of node_topic(), nodeid_topic()

This provides a way for non-broker cluster backends to override a
node's identifier and its own topics that it listens on by default.
This commit is contained in:
Arne Welzel 2024-11-15 11:35:48 +01:00
parent 210b54799e
commit a2249f7ecb
2 changed files with 11 additions and 4 deletions

View file

@ -94,7 +94,7 @@ event zeek_init() &priority=-10
return;
}
Cluster::subscribe(nodeid_topic(Broker::node_id()));
Cluster::subscribe(nodeid_topic(Cluster::node_id()));
Cluster::subscribe(node_topic(node));