Remove Backend::SupportsAsync

This commit is contained in:
Tim Wojtulewicz 2025-01-30 19:11:28 -07:00
parent 42ad5bbf7d
commit e8074c40d4
2 changed files with 0 additions and 11 deletions

View file

@ -104,12 +104,6 @@ public:
*/
virtual bool IsOpen() = 0;
/**
* Returns whether the backend's connection supports asynchronous commands.
* Defaults to true, but can be overridden by backends.
*/
virtual bool SupportsAsync() { return true; }
protected:
// Allow the manager to call Open/Close.
friend class storage::Manager;

View file

@ -8,11 +8,6 @@ using namespace zeek;
using namespace zeek::storage;
static zeek::detail::trigger::TriggerPtr init_trigger(zeek::detail::Frame* frame, const BackendPtr& b) {
if ( ! b->SupportsAsync() ) {
emit_builtin_error("Async mode requested but backend does not support async operations");
return nullptr;
}
auto trigger = frame->GetTrigger();
if ( ! trigger ) {