send needle data instead of raw needle body

This commit is contained in:
Chris Lu 2021-09-27 01:53:41 -07:00
parent c4d7ee6c5c
commit aa64f2ac4c

View file

@ -41,7 +41,7 @@ func (scanner *VolumeFileScanner4ReadAll) VisitNeedle(n *needle.Needle, offset i
sendErr := scanner.stream.Send(&volume_server_pb.ReadAllNeedlesResponse{
NeedleId: uint64(n.Id),
NeedleBlob: needleBody,
NeedleBlob: n.Data,
})
if sendErr != nil {
return sendErr