Skip to content

Commit 735afe6

Browse files
committed
fix: fix a deadlock issue when it occurs simultaneously: a goroutine is trying to lock, and another goroutine waits since full of channel buffers #440
1 parent 7778a1c commit 735afe6

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

response.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ func (r *searchResponse) Next() bool {
6060
if r.err != nil {
6161
return false
6262
}
63-
r.err = r.conn.GetLastError()
64-
if r.err != nil {
65-
return false
66-
}
6763
r.entry = res.Entry
6864
r.referral = res.Referral
6965
r.controls = res.Controls

v3/response.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ func (r *searchResponse) Next() bool {
6060
if r.err != nil {
6161
return false
6262
}
63-
r.err = r.conn.GetLastError()
64-
if r.err != nil {
65-
return false
66-
}
6763
r.entry = res.Entry
6864
r.referral = res.Referral
6965
r.controls = res.Controls

0 commit comments

Comments
 (0)