File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 44
55#include " envoy/registry/registry.h"
66#include " envoy/server/filter_config.h"
7+ #include " absl/status/statusor.h"
78
89namespace Envoy {
910namespace Server {
@@ -14,7 +15,7 @@ namespace Configuration {
1415 */
1516class Echo2ConfigFactory : public NamedNetworkFilterConfigFactory {
1617public:
17- Network::FilterFactoryCb createFilterFactoryFromProto (const Protobuf::Message&,
18+ absl::StatusOr< Network::FilterFactoryCb> createFilterFactoryFromProto (const Protobuf::Message&,
1819 FactoryContext&) override {
1920 return [](Network::FilterManager& filter_manager) -> void {
2021 filter_manager.addReadFilter (Network::ReadFilterSharedPtr{new Filter::Echo2 ()});
Original file line number Diff line number Diff line change 22
33#include " envoy/registry/registry.h"
44#include " envoy/server/filter_config.h"
5+ #include " absl/status/statusor.h"
56
67#include " http-filter-example/http_filter.pb.h"
78#include " http-filter-example/http_filter.pb.validate.h"
@@ -13,7 +14,7 @@ namespace Configuration {
1314
1415class HttpSampleDecoderFilterConfigFactory : public NamedHttpFilterConfigFactory {
1516public:
16- Http::FilterFactoryCb createFilterFactoryFromProto (const Protobuf::Message& proto_config,
17+ absl::StatusOr< Http::FilterFactoryCb> createFilterFactoryFromProto (const Protobuf::Message& proto_config,
1718 const std::string&,
1819 FactoryContext& context) override {
1920
You can’t perform that action at this time.
0 commit comments