Skip to content

Commit f6d945f

Browse files
committed
Fix clang-format
Signed-off-by: Michael Warres <[email protected]>
1 parent 9efbdfc commit f6d945f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

proxy_wasm_api.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,7 @@ class Context : public ContextBase {
703703
//
704704
// Returns `FilterStatus` indicating whether processing of the connection
705705
// should continue or pause until a later call to `continueDownstream`.
706-
virtual FilterStatus onDownstreamData(size_t /* data_size */,
707-
bool /* end_of_stream */) {
706+
virtual FilterStatus onDownstreamData(size_t /* data_size */, bool /* end_of_stream */) {
708707
return FilterStatus::Continue;
709708
}
710709

@@ -716,8 +715,7 @@ class Context : public ContextBase {
716715
//
717716
// Returns `FilterStatus` indicating whether processing of the connection
718717
// should continue or pause until a later call to `continueUpstream`.
719-
virtual FilterStatus onUpstreamData(size_t /* data_size */,
720-
bool /* end_of_stream */) {
718+
virtual FilterStatus onUpstreamData(size_t /* data_size */, bool /* end_of_stream */) {
721719
return FilterStatus::Continue;
722720
}
723721

@@ -1583,9 +1581,13 @@ template <> inline std::string toString(std::string t) { return t; }
15831581

15841582
template <> inline std::string toString(bool t) { return t ? "true" : "false"; }
15851583

1586-
template <typename T> struct StringToStringView { typedef T type; };
1584+
template <typename T> struct StringToStringView {
1585+
typedef T type;
1586+
};
15871587

1588-
template <> struct StringToStringView<std::string> { typedef std::string_view type; };
1588+
template <> struct StringToStringView<std::string> {
1589+
typedef std::string_view type;
1590+
};
15891591

15901592
inline uint32_t MetricBase::resolveFullName(const std::string &n) {
15911593
auto it = metric_ids.find(n);

0 commit comments

Comments
 (0)