p2p/raftsupport/snapshotsender.go
Function readWireHSResp
has 5 return statements (exceeds 4 allowed). Open
Open
func readWireHSResp(rd io.Reader) (resp types.SnapshotResponse, err error) {
bytebuf := make([]byte, SnapRespHeaderLength)
readn, err := p2putil.ReadToLen(rd, bytebuf)
if err != nil {
return