Explorar el Código

fixed handle cleanup error

when cleanup return an error , why handle ‘err’ ( seem always nil ) ?
coldWater hace 6 años
padre
commit
b4d38af3f3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 			}
 		}