Fix write node consume busy

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/4973/head^2
xige-16 2020-09-29 19:10:41 +08:00 committed by yefu.chen
parent 12e49781e6
commit eb3c55cd03
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -27,6 +27,7 @@ proxy/milvus
proxy/cmake_build proxy/cmake_build
proxy/cmake-build-debug proxy/cmake-build-debug
proxy/cmake-build-release proxy/cmake-build-release
proxy/cmake_build_release
proxy/thirdparty/grpc-src proxy/thirdparty/grpc-src
proxy/thirdparty/grpc-build proxy/thirdparty/grpc-build
proxy/milvus/* proxy/milvus/*

View File

@ -87,7 +87,7 @@ func (mc *MessageClient) creatProducer(topicName string) pulsar.Producer {
func (mc *MessageClient) createConsumer(topicName string) pulsar.Consumer { func (mc *MessageClient) createConsumer(topicName string) pulsar.Consumer {
consumer, err := mc.client.Subscribe(pulsar.ConsumerOptions{ consumer, err := mc.client.Subscribe(pulsar.ConsumerOptions{
Topic: topicName, Topic: topicName,
SubscriptionName: "writer", SubscriptionName: "writer" + strconv.Itoa(mc.MessageClientID),
}) })
if err != nil { if err != nil {