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:
Arne Welzel 2025-04-07 13:50:24 +02:00
parent c4a48baeda
commit 90f94ff4f2
5 changed files with 11 additions and 8 deletions

View file

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