cluster/Backend: Do not inline Init()

This commit is contained in:
Arne Welzel 2025-04-17 10:15:21 +02:00
parent a90a41a8b5
commit bfb033622f
2 changed files with 6 additions and 5 deletions

View file

@ -89,6 +89,11 @@ Backend::Backend(std::string_view arg_name, std::unique_ptr<EventSerializer> es,
reporter->InternalError("unknown cluster backend name '%s'; mismatch with tag component?", name.c_str());
}
bool Backend::Init(std::string nid) {
SetNodeId(std::move(nid));
return DoInit();
}
std::optional<detail::Event> Backend::MakeClusterEvent(FuncValPtr handler, ArgsSpan args, double timestamp) const {
auto checked_args = detail::check_args(handler, args);
if ( ! checked_args )

View file

@ -194,11 +194,7 @@ public:
*
* @param nid The node identifier to use.
*/
bool Init(std::string nid) {
node_id = std::move(nid);
return DoInit();
}
bool Init(std::string nid);
/**
* Hook invoked when Zeek is about to terminate.