diff --git a/echo2_config.cc b/echo2_config.cc index 8e2d75ec..bf949107 100644 --- a/echo2_config.cc +++ b/echo2_config.cc @@ -14,8 +14,8 @@ namespace Configuration { */ class Echo2ConfigFactory : public NamedNetworkFilterConfigFactory { public: - Network::FilterFactoryCb createFilterFactoryFromProto(const Protobuf::Message&, - FactoryContext&) override { + absl::StatusOr + createFilterFactoryFromProto(const Protobuf::Message&, FactoryContext&) override { return [](Network::FilterManager& filter_manager) -> void { filter_manager.addReadFilter(Network::ReadFilterSharedPtr{new Filter::Echo2()}); };