Distributed Services with Go: pg 38

Code at the end of page for the WriteALogPackage/internal/log/segment.go
says p, err := s.store.Read(pos), should be ReadAt I think

2 Likes

No, Read is the correct method there.

1 Like

Unless I’m looking at a different part. What page are you looking at?

1 Like

My bad, I was looking at the wrong function. Sorry for the confusion. Look fine in fact.

1 Like

Awesome, thanks.

1 Like