mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Make storage events take a tag for the backend instead of a string
This commit is contained in:
parent
989e4adf90
commit
32ae8f4eaa
15 changed files with 39 additions and 38 deletions
|
@ -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>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue