mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
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:
parent
210b54799e
commit
a2249f7ecb
2 changed files with 11 additions and 4 deletions
|
@ -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));
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue