Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vadiminshakov committed Jan 5, 2025
1 parent 44e78b0 commit 11ce1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segment.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ func loadIndexes(file *os.File) (map[uint64]msg, error) {

var msgs []msg
dec := gob.NewDecoder(bytes.NewReader(buf))
var msgIndexed msg
for {
var msgIndexed msg
if err = dec.Decode(&msgIndexed); err != nil {
if err == io.EOF {
break
Expand Down

0 comments on commit 11ce1dc

Please sign in to comment.