mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
Downgrade pulsar client (#15325)
Signed-off-by: sunby <bingyi.sun@zilliz.com> Co-authored-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
parent
ffe86ee49b
commit
c877f33084
2
go.mod
2
go.mod
@ -5,7 +5,7 @@ go 1.15
|
||||
require (
|
||||
github.com/HdrHistogram/hdrhistogram-go v1.0.1 // indirect
|
||||
github.com/antonmedv/expr v1.8.9
|
||||
github.com/apache/pulsar-client-go v0.7.0
|
||||
github.com/apache/pulsar-client-go v0.6.1-0.20210728062540-29414db801a7
|
||||
github.com/apache/thrift/lib/go/thrift v0.0.0-20210120171102-e27e82c46ba4
|
||||
github.com/bits-and-blooms/bitset v1.2.0 // indirect
|
||||
github.com/bits-and-blooms/bloom/v3 v3.0.1
|
||||
|
@ -115,7 +115,7 @@ func (pc *PulsarConsumer) Close() {
|
||||
err := retry.Do(context.Background(), func() error {
|
||||
//TODO need to check error retryable
|
||||
return pc.c.Unsubscribe()
|
||||
}, retry.MaxSleepTime(50*time.Millisecond), retry.Attempts(3))
|
||||
}, retry.MaxSleepTime(50*time.Millisecond), retry.Attempts(6))
|
||||
if err != nil {
|
||||
log.Error("failed to unsubscribe", zap.String("subscription", pc.Subscription()), zap.Error(err))
|
||||
panic(err)
|
||||
|
Loading…
Reference in New Issue
Block a user