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:
Bingyi Sun 2022-01-20 22:25:38 +08:00 committed by GitHub
parent ffe86ee49b
commit c877f33084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
go.mod
View File

@ -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

View File

@ -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)