You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by ww...@apache.org on 2023/11/10 08:49:08 UTC
(brpc) branch master updated: Disallow copy and assign of Channel (#2439)
This is an automated email from the ASF dual-hosted git repository.
wwbmmm 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 bef942b2 Disallow copy and assign of Channel (#2439)
bef942b2 is described below
commit bef942b2b6d77708280051262da05e88d1604c0f
Author: Bright Chen <ch...@foxmail.com>
AuthorDate: Fri Nov 10 16:49:03 2023 +0800
Disallow copy and assign of Channel (#2439)
---
src/brpc/channel.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/brpc/channel.h b/src/brpc/channel.h
index 0f1c0bbb..651c5084 100644
--- a/src/brpc/channel.h
+++ b/src/brpc/channel.h
@@ -153,7 +153,9 @@ friend class Controller;
friend class SelectiveChannel;
public:
Channel(ProfilerLinker = ProfilerLinker());
- ~Channel();
+ virtual ~Channel();
+
+ DISALLOW_COPY_AND_ASSIGN(Channel);
// Connect this channel to a single server whose address is given by the
// first parameter. Use default options if `options' is NULL.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org