소스 검색

Merge pull request #818 from simon-xia/simon-xia-dev

fix return err
Evan Huus 9 년 전
부모
커밋
1579b0648e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 		}