Skip to content

Commit

Permalink
Initialize the first segment on store creation
Browse files Browse the repository at this point in the history
  • Loading branch information
gdiazlo committed Mar 6, 2019
1 parent 6475fe3 commit 0caf105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/test_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ type snapStore struct {
}

func newSnapStore() *snapStore {
return &snapStore{segments: make([]Segment, 0)}
return &snapStore{segments: append([]Segment{}, Segment{})}
}

func (s *snapStore) Put(b *protocol.BatchSnapshots) {
Expand Down

0 comments on commit 0caf105

Please sign in to comment.