Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
8b4ec846
Commit
8b4ec846
authored
Jun 20, 2019
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapt callback.h after pb3.7 & remove unnecessary files
parent
a3cc09cd
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
14 deletions
+11
-14
callback.h
src/brpc/callback.h
+5
-0
memcache.cpp
src/brpc/memcache.cpp
+0
-1
memcache.h
src/brpc/memcache.h
+1
-1
nshead_message.h
src/brpc/nshead_message.h
+0
-2
progressive_attachment.h
src/brpc/progressive_attachment.h
+1
-2
proto_base.proto
src/brpc/proto_base.proto
+0
-1
redis.cpp
src/brpc/redis.cpp
+1
-1
redis.h
src/brpc/redis.h
+3
-4
thrift_message.h
src/brpc/thrift_message.h
+0
-2
No files found.
src/brpc/callback.h
View file @
8b4ec846
...
...
@@ -10,6 +10,11 @@
#define BRPC_CALLBACK_H
#include <google/protobuf/stubs/common.h> // Closure
#if GOOGLE_PROTOBUF_VERSION >= 3007000
// After protobuf 3.7.0, callback.h is removed from common.h, we need to explicitly
// include this file.
#include <google/protobuf/stubs/callback.h>
#endif
namespace
brpc
{
...
...
src/brpc/memcache.cpp
View file @
8b4ec846
...
...
@@ -15,7 +15,6 @@
// Authors: Ge,Jun (gejun@baidu.com)
#include <algorithm>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
#include "butil/string_printf.h"
...
...
src/brpc/memcache.h
View file @
8b4ec846
...
...
@@ -18,7 +18,7 @@
#define BRPC_MEMCACHE_H
#include <string>
#include
"google/protobuf/message.h"
#include
<google/protobuf/message.h>
#include "butil/iobuf.h"
#include "butil/strings/string_piece.h"
...
...
src/brpc/nshead_message.h
View file @
8b4ec846
...
...
@@ -17,8 +17,6 @@
#ifndef BRPC_NSHEAD_MESSAGE_H
#define BRPC_NSHEAD_MESSAGE_H
#include <string>
#include <google/protobuf/message.h>
#include "brpc/nshead.h" // nshead_t
#include "butil/iobuf.h" // IOBuf
...
...
src/brpc/progressive_attachment.h
View file @
8b4ec846
...
...
@@ -17,7 +17,7 @@
#ifndef BRPC_PROGRESSIVE_ATTACHMENT_H
#define BRPC_PROGRESSIVE_ATTACHMENT_H
#include
<google/protobuf/stubs/callback.h>
#include
"brpc/callback.h"
#include "butil/atomicops.h"
#include "butil/iobuf.h"
#include "butil/endpoint.h" // butil::EndPoint
...
...
@@ -25,7 +25,6 @@
#include "brpc/socket_id.h" // SocketUniquePtr
#include "brpc/shared_object.h" // SharedObject
namespace
brpc
{
class
ProgressiveAttachment
:
public
SharedObject
{
...
...
src/brpc/proto_base.proto
View file @
8b4ec846
syntax
=
"proto2"
;
import
"google/protobuf/descriptor.proto"
;
package
brpc
;
...
...
src/brpc/redis.cpp
View file @
8b4ec846
...
...
@@ -16,7 +16,7 @@
#include <google/protobuf/reflection_ops.h> // ReflectionOps::Merge
#include <gflags/gflags.h>
#include
<butil/status.h>
#include
"butil/status.h"
#include "brpc/redis.h"
#include "brpc/redis_command.h"
...
...
src/brpc/redis.h
View file @
8b4ec846
...
...
@@ -17,10 +17,7 @@
#ifndef BRPC_REDIS_H
#define BRPC_REDIS_H
#include <string>
#include <google/protobuf/message.h>
#include "butil/iobuf.h"
#include "butil/strings/string_piece.h"
#include "butil/arena.h"
...
...
@@ -193,7 +190,9 @@ public:
static
const
::
google
::
protobuf
::
Descriptor
*
descriptor
();
static
const
RedisResponse
&
default_instance
();
::
google
::
protobuf
::
Metadata
GetMetadata
()
const
;
protected
:
::
google
::
protobuf
::
Metadata
GetMetadata
()
const
override
;
private
:
void
SharedCtor
();
...
...
src/brpc/thrift_message.h
View file @
8b4ec846
...
...
@@ -17,8 +17,6 @@
#ifndef BRPC_THRIFT_MESSAGE_H
#define BRPC_THRIFT_MESSAGE_H
#include <functional>
#include <string>
#include <google/protobuf/message.h>
#include "butil/iobuf.h"
#include "butil/class_name.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment