Browse Source

Merge pull request #1332 from forsaken628/patch-1

fixed handle cleanup error
Vlad Gorodetsky 6 years ago
parent
commit
6e69750ac4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      consumer_group.go

+ 1 - 1
consumer_group.go

@@ -614,7 +614,7 @@ func (s *consumerGroupSession) release(withCleanup bool) (err error) {
 	s.releaseOnce.Do(func() {
 		if withCleanup {
 			if e := s.handler.Cleanup(s); e != nil {
-				s.parent.handleError(err, "", -1)
+				s.parent.handleError(e, "", -1)
 				err = e
 			}
 		}