mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
cluster/PublishEvent:: Make event non-const
We want to introduce a hook that can modify the cluster event instances, so need to pass around a non-const version of it.
This commit is contained in:
parent
c4a48baeda
commit
90f94ff4f2
5 changed files with 11 additions and 8 deletions
|
@ -624,7 +624,7 @@ std::vector<broker::peer_info> Manager::Peers() const {
|
|||
|
||||
std::string Manager::NodeID() const { return to_string(bstate->endpoint.node_id()); }
|
||||
|
||||
bool Manager::DoPublishEvent(const std::string& topic, const cluster::detail::Event& event) {
|
||||
bool Manager::DoPublishEvent(const std::string& topic, cluster::detail::Event& event) {
|
||||
auto maybe_ev = zeek::cluster::detail::to_broker_event(event);
|
||||
if ( ! maybe_ev )
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue