diff --git a/echo2_config.cc b/echo2_config.cc index 8e2d75ec9..f5fadcdb9 100644 --- a/echo2_config.cc +++ b/echo2_config.cc @@ -4,6 +4,7 @@ #include "envoy/registry/registry.h" #include "envoy/server/filter_config.h" +#include "absl/status/statusor.h" namespace Envoy { namespace Server { @@ -14,7 +15,7 @@ namespace Configuration { */ class Echo2ConfigFactory : public NamedNetworkFilterConfigFactory { public: - Network::FilterFactoryCb createFilterFactoryFromProto(const Protobuf::Message&, + absl::StatusOr createFilterFactoryFromProto(const Protobuf::Message&, FactoryContext&) override { return [](Network::FilterManager& filter_manager) -> void { filter_manager.addReadFilter(Network::ReadFilterSharedPtr{new Filter::Echo2()}); diff --git a/http-filter-example/http_filter_config.cc b/http-filter-example/http_filter_config.cc index a1e5d70c0..d59e2fb64 100644 --- a/http-filter-example/http_filter_config.cc +++ b/http-filter-example/http_filter_config.cc @@ -2,6 +2,7 @@ #include "envoy/registry/registry.h" #include "envoy/server/filter_config.h" +#include "absl/status/statusor.h" #include "http-filter-example/http_filter.pb.h" #include "http-filter-example/http_filter.pb.validate.h" @@ -13,7 +14,7 @@ namespace Configuration { class HttpSampleDecoderFilterConfigFactory : public NamedHttpFilterConfigFactory { public: - Http::FilterFactoryCb createFilterFactoryFromProto(const Protobuf::Message& proto_config, + absl::StatusOr createFilterFactoryFromProto(const Protobuf::Message& proto_config, const std::string&, FactoryContext& context) override {