You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by du...@apache.org on 2019/10/22 04:43:16 UTC
[rocketmq-client-python] branch ctypes updated: fix(client) fix set
group issue
This is an automated email from the ASF dual-hosted git repository.
duhengforever pushed a commit to branch ctypes
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-python.git
The following commit(s) were added to refs/heads/ctypes by this push:
new 4ac5126 fix(client) fix set group issue
new c0d98f6 Merge pull request #55 from duhenglucky/fix_group
4ac5126 is described below
commit 4ac5126a5983dc0cf4cf80d28e87a75e9cab2457
Author: duhenglucky <du...@gmail.com>
AuthorDate: Tue Oct 22 10:04:16 2019 +0800
fix(client) fix set group issue
---
rocketmq/client.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/rocketmq/client.py b/rocketmq/client.py
index 5f87080..ff0543c 100644
--- a/rocketmq/client.py
+++ b/rocketmq/client.py
@@ -299,7 +299,7 @@ class Producer(object):
)
def set_group(self, group_name):
- ffi_check(dll.SetProducerGroupName(_to_bytes(group_name)))
+ ffi_check(dll.SetProducerGroupName(self._handle, _to_bytes(group_name)))
def set_namesrv_addr(self, addr):
ffi_check(dll.SetProducerNameServerAddress(self._handle, _to_bytes(addr)))
@@ -360,7 +360,7 @@ class PushConsumer(object):
ffi_check(dll.ShutdownPushConsumer(self._handle))
def set_group(self, group_id):
- ffi_check(dll.SetPushConsumerGroupID(_to_bytes(group_id)))
+ ffi_check(dll.SetPushConsumerGroupID(self._handle, _to_bytes(group_id)))
def set_namesrv_addr(self, addr):
ffi_check(dll.SetPushConsumerNameServerAddress(self._handle, _to_bytes(addr)))
@@ -443,7 +443,7 @@ class PullConsumer(object):
ffi_check(dll.ShutdownPullConsumer(self._handle))
def set_group(self, group_id):
- ffi_check(dll.SetPullConsumerGroupID(_to_bytes(group_id)))
+ ffi_check(dll.SetPullConsumerGroupID(self._handle, _to_bytes(group_id)))
def set_namesrv_addr(self, addr):
ffi_check(dll.SetPullConsumerNameServerAddress(self._handle, _to_bytes(addr)))