app/vmselect/netstorage: typo fix after 03dfccfbed

This commit is contained in:
Aliaksandr Valialkin 2020-09-16 00:10:28 +03:00
parent 2a86e2fb98
commit 1587f83fa0

View file

@ -395,7 +395,7 @@ func (sb *sortBlock) reset() {
func (sb *sortBlock) unpackFrom(tmpBlock *storage.Block, tbf *tmpBlocksFile, addr tmpBlockAddr, tr storage.TimeRange, fetchData bool, at *auth.Token) error {
tmpBlock.Reset()
tbf.MustReadBlockAt(&sb.b, addr)
tbf.MustReadBlockAt(tmpBlock, addr)
if fetchData {
if err := tmpBlock.UnmarshalData(); err != nil {
return fmt.Errorf("cannot unmarshal block: %w", err)