Fixed readresp array error

This commit is contained in:
tidwall 2020-02-11 09:27:00 -07:00
parent f50c3d4246
commit 5c8de50bde
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ func ReadNextRESP(b []byte) (n int, resp RESP) {
return 0, RESP{}
}
tn += rn
sdata = sdata[rn:]
}
resp.Data = b[i : i+tn]
resp.Raw = b[0 : i+tn]