Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Dec 11, 2024
1 parent 1e50ff9 commit 7783ec4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blocktimeindex/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func (i *Index) Get(slot uint64) (int64, error) {

func (i *Index) marshalBinary() ([]byte, error) {
writer := bytes.NewBuffer(nil)
writer.Grow(DefaultIndexByteSize)
_, err := writer.Write(magic)
if err != nil {
return nil, fmt.Errorf("failed to write magic: %w", err)
Expand Down

0 comments on commit 7783ec4

Please sign in to comment.