File tree 4 files changed +0
-12
lines changed
4 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -327,8 +327,6 @@ func (l *Conn) nextMessageID() int64 {
327
327
// GetLastError returns the last recorded error from goroutines like processMessages and reader.
328
328
// Only the last recorded error will be returned.
329
329
func (l * Conn ) GetLastError () error {
330
- l .messageMutex .Lock ()
331
- defer l .messageMutex .Unlock ()
332
330
return l .err
333
331
}
334
332
Original file line number Diff line number Diff line change @@ -60,10 +60,6 @@ func (r *searchResponse) Next() bool {
60
60
if r .err != nil {
61
61
return false
62
62
}
63
- r .err = r .conn .GetLastError ()
64
- if r .err != nil {
65
- return false
66
- }
67
63
r .entry = res .Entry
68
64
r .referral = res .Referral
69
65
r .controls = res .Controls
Original file line number Diff line number Diff line change @@ -327,8 +327,6 @@ func (l *Conn) nextMessageID() int64 {
327
327
// GetLastError returns the last recorded error from goroutines like processMessages and reader.
328
328
// // Only the last recorded error will be returned.
329
329
func (l * Conn ) GetLastError () error {
330
- l .messageMutex .Lock ()
331
- defer l .messageMutex .Unlock ()
332
330
return l .err
333
331
}
334
332
Original file line number Diff line number Diff line change @@ -60,10 +60,6 @@ func (r *searchResponse) Next() bool {
60
60
if r .err != nil {
61
61
return false
62
62
}
63
- r .err = r .conn .GetLastError ()
64
- if r .err != nil {
65
- return false
66
- }
67
63
r .entry = res .Entry
68
64
r .referral = res .Referral
69
65
r .controls = res .Controls
You can’t perform that action at this time.
0 commit comments