mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
cluster/Backend: Do not inline Init()
This commit is contained in:
parent
a90a41a8b5
commit
bfb033622f
2 changed files with 6 additions and 5 deletions
|
@ -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 )
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue