mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28: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
|
@ -91,7 +91,7 @@ std::optional<detail::Event> Backend::MakeClusterEvent(FuncValPtr handler, ArgsS
|
|||
}
|
||||
|
||||
// Default implementation doing the serialization.
|
||||
bool Backend::DoPublishEvent(const std::string& topic, const cluster::detail::Event& event) {
|
||||
bool Backend::DoPublishEvent(const std::string& topic, cluster::detail::Event& event) {
|
||||
cluster::detail::byte_buffer buf;
|
||||
|
||||
if ( ! event_serializer->SerializeEvent(buf, event) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue