Distributed Services With Go - Why is there an Offset field in the Record struct?

Hi,

I haven’t finished the book yet. But… At some point, I’m wondering why the Record struct has an Offset field.

I noticed that when appending a new record, only the offset is returned (not a Record with the offset field set). And when reading a record at a given offset, only the value is set in the returned record. So in the end, I guess the Offset field isn’t used…

Cheers,

2 Likes