Explorar el Código

fix return err

Simon Xia hace 9 años
padre
commit
bfebde69db
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      fetch_request.go

+ 1 - 1
fetch_request.go

@@ -92,7 +92,7 @@ func (r *FetchRequest) decode(pd packetDecoder, version int16) (err error) {
 			}
 			fetchBlock := &fetchRequestBlock{}
 			if err = fetchBlock.decode(pd); err != nil {
-				return nil
+				return err
 			}
 			r.blocks[topic][partition] = fetchBlock
 		}