You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by se...@apache.org on 2023/12/27 04:55:07 UTC
(brpc) branch master updated: Fix json2pb compile error of examples (#2482)
This is an automated email from the ASF dual-hosted git repository.
serverglen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git
The following commit(s) were added to refs/heads/master by this push:
new 4357ceee Fix json2pb compile error of examples (#2482)
4357ceee is described below
commit 4357ceeebabd5ad7a87d79621f1568473035390e
Author: Bright Chen <ch...@foxmail.com>
AuthorDate: Wed Dec 27 12:55:02 2023 +0800
Fix json2pb compile error of examples (#2482)
---
example/asynchronous_echo_c++/server.cpp | 1 +
example/http_c++/http_server.cpp | 1 +
2 files changed, 2 insertions(+)
diff --git a/example/asynchronous_echo_c++/server.cpp b/example/asynchronous_echo_c++/server.cpp
index 8c7ced67..7aad241f 100644
--- a/example/asynchronous_echo_c++/server.cpp
+++ b/example/asynchronous_echo_c++/server.cpp
@@ -20,6 +20,7 @@
#include <gflags/gflags.h>
#include <butil/logging.h>
#include <brpc/server.h>
+#include <json2pb/pb_to_json.h>
#include "echo.pb.h"
DEFINE_bool(send_attachment, true, "Carry attachment along with response");
diff --git a/example/http_c++/http_server.cpp b/example/http_c++/http_server.cpp
index 202f55d1..3a806c43 100644
--- a/example/http_c++/http_server.cpp
+++ b/example/http_c++/http_server.cpp
@@ -21,6 +21,7 @@
#include <butil/logging.h>
#include <brpc/server.h>
#include <brpc/restful.h>
+#include <json2pb/pb_to_json.h>
#include "http.pb.h"
DEFINE_int32(port, 8010, "TCP Port of this server");
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org