remove wrong writes

This commit is contained in:
Chris Lu 2021-03-06 14:25:21 -08:00
parent 8363be8548
commit e9eddfb8a2

View file

@ -48,8 +48,6 @@ func (v *Volume) StreamWrite(n *needle.Needle, data io.Reader, dataSize uint32)
// data checksum
util.Uint32toBytes(header[0:needle.NeedleChecksumSize], crcWriter.Sum())
df.Write(header[0:needle.NeedleChecksumSize])
// write timestamp, padding
n.AppendAtNs = uint64(time.Now().UnixNano())
util.Uint64toBytes(header[needle.NeedleChecksumSize:needle.NeedleChecksumSize+TimestampSize], n.AppendAtNs)