From 735afe61d29a488e08fd3223c32529f704369cce Mon Sep 17 00:00:00 2001 From: Tetsuya Morimoto Date: Wed, 19 Jul 2023 17:50:28 +0900 Subject: [PATCH] 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 --- response.go | 4 ---- v3/response.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/response.go b/response.go index 81d97d9b..1cb6c37e 100644 --- a/response.go +++ b/response.go @@ -60,10 +60,6 @@ func (r *searchResponse) Next() bool { if r.err != nil { return false } - r.err = r.conn.GetLastError() - if r.err != nil { - return false - } r.entry = res.Entry r.referral = res.Referral r.controls = res.Controls diff --git a/v3/response.go b/v3/response.go index 81d97d9b..1cb6c37e 100644 --- a/v3/response.go +++ b/v3/response.go @@ -60,10 +60,6 @@ func (r *searchResponse) Next() bool { if r.err != nil { return false } - r.err = r.conn.GetLastError() - if r.err != nil { - return false - } r.entry = res.Entry r.referral = res.Referral r.controls = res.Controls