Skip to content

Commit

Permalink
Fix after previous commit. (envoyproxy#149)
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
  • Loading branch information
PiotrSikora authored Aug 24, 2019
1 parent 83a3be9 commit 057e25a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/wasm/cpp/proxy_wasm_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ inline WasmResult getPluginDirection(PluginDirection *direction_ptr) {
}

// Generic selector
inline absl::optional<WasmDataPtr> getSelectorExpression(std::initializer_list<absl::string_view> parts) {
inline Optional<WasmDataPtr> getSelectorExpression(std::initializer_list<StringView> parts) {
size_t size = 0;
for (auto part: parts) {
size += part.size() + 1; // null terminated string value
Expand Down
2 changes: 2 additions & 0 deletions api/wasm/cpp/proxy_wasm_intrinsics.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include <cstdint>
#include <string_view>
using StringView = std::string_view;
#include <optional>
template <typename T> using Optional = std::optional<T>;

#include "proxy_wasm_enums.h"
#include "proxy_wasm_result.h"
Expand Down
1 change: 1 addition & 0 deletions source/extensions/common/wasm/null/null_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ using FilterDataStatus = Http::FilterDataStatus;
using GrpcStatus = Envoy::Grpc::Status::GrpcStatus;
using MetricType = Envoy::Extensions::Common::Wasm::Context::MetricType;
using StringView = absl::string_view;
template <typename T> using Optional = absl::optional<T>;
} // namespace Plugin
} // namespace Null
} // namespace Wasm
Expand Down

0 comments on commit 057e25a

Please sign in to comment.