mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
notice: Move to Cluster::publish()
This commit is contained in:
parent
347faf5e86
commit
a9243bafcc
1 changed files with 5 additions and 5 deletions
|
@ -529,7 +529,7 @@ hook Notice::notice(n: Notice::Info) &priority=-5
|
|||
# Once we have global pub/sub, we could also unconditionally
|
||||
# send to a notice specific topic for communicating
|
||||
# suppressions directly to all nodes.
|
||||
Broker::publish(Cluster::manager_topic, Notice::begin_suppression,
|
||||
Cluster::publish(Cluster::manager_topic, Notice::begin_suppression,
|
||||
n$ts, n$suppress_for, n$note, n$identifier);
|
||||
@endif
|
||||
}
|
||||
|
@ -540,9 +540,9 @@ hook Notice::notice(n: Notice::Info) &priority=-5
|
|||
@if ( Cluster::is_enabled() && Cluster::local_node_type() == Cluster::MANAGER )
|
||||
event Notice::begin_suppression(ts: time, suppress_for: interval, note: Type, identifier: string)
|
||||
{
|
||||
local e = Broker::make_event(Notice::begin_suppression, ts, suppress_for, note, identifier);
|
||||
Broker::publish(Cluster::worker_topic, e);
|
||||
Broker::publish(Cluster::proxy_topic, e);
|
||||
local e = Cluster::make_event(Notice::begin_suppression, ts, suppress_for, note, identifier);
|
||||
Cluster::publish(Cluster::worker_topic, e);
|
||||
Cluster::publish(Cluster::proxy_topic, e);
|
||||
}
|
||||
@endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue