Make storage events take a tag for the backend instead of a string

This commit is contained in:
Tim Wojtulewicz 2025-03-24 16:16:26 -07:00
parent 989e4adf90
commit 32ae8f4eaa
15 changed files with 39 additions and 38 deletions

View file

@ -4,7 +4,6 @@
#include <atomic>
#include "zeek/Desc.h"
#include "zeek/RunState.h"
#include "zeek/storage/ReturnCode.h"
@ -61,10 +60,7 @@ zeek::expected<BackendPtr, std::string> Manager::Instantiate(const Tag& type) {
util::fmt("Factory invalid for backend %s", GetComponentName(type).c_str()));
}
ODesc d;
type.AsVal()->Describe(&d);
BackendPtr bp = c->Factory()(d.Description());
BackendPtr bp = c->Factory()();
if ( ! bp ) {
return zeek::unexpected<std::string>(