|
|
@ -56,10 +56,10 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
void RemoveBackend(std::string_view backend_name) {
|
|
|
|
void RemoveBackend(std::string_view backend_name) {
|
|
|
|
std::lock_guard lock{writing_mutex};
|
|
|
|
std::lock_guard lock{writing_mutex};
|
|
|
|
const auto it =
|
|
|
|
|
|
|
|
std::remove_if(backends.begin(), backends.end(),
|
|
|
|
std::erase_if(backends, [&backend_name](const auto& backend) {
|
|
|
|
[&backend_name](const auto& i) { return backend_name == i->GetName(); });
|
|
|
|
return backend_name == backend->GetName();
|
|
|
|
backends.erase(it, backends.end());
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const Filter& GetGlobalFilter() const {
|
|
|
|
const Filter& GetGlobalFilter() const {
|
|
|
|