Skip to content

Commit

Permalink
Fix pointer issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
LINCKODE committed Oct 2, 2024
1 parent d667021 commit 0266eac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -726,12 +726,12 @@ func (s *PebbleStore) GetLastTickQuorumDataPerEpoch(epoch uint32) (*protobuff.Qu
}
defer closer.Close()

var quorumData *protobuff.QuorumTickData
var quorumData protobuff.QuorumTickData

err = proto.Unmarshal(value, quorumData)
err = proto.Unmarshal(value, &quorumData)
if err != nil {
return nil, errors.Wrapf(err, "deserializing quorum tick data for last tick of epoch %d", epoch)
}

return quorumData, nil
return &quorumData, nil
}

0 comments on commit 0266eac

Please sign in to comment.