Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
firelizzard18 committed Jul 10, 2024
1 parent 816e964 commit fd962aa
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions pkg/database/bpt/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (r *stateData) MarshalBinary() ([]byte, error) {
buf := new(bytes.Buffer)
_, _ = buf.WriteString(paramsV2Magic)
enc := binary.NewEncoder(buf)
err := wstateData.MarshalBinary(enc, &r)
err := wstateData.MarshalBinary(enc, r)
return buf.Bytes(), err
}

Expand All @@ -116,7 +116,7 @@ func (r *stateData) UnmarshalBinaryFrom(rd io.Reader) error {
// If the first 3 bytes matches the magic value, decode using the schema
if unsafe.String(&magic[0], N) == paramsV2Magic {
dec := binary.NewDecoder(rd)
return wstateData.UnmarshalBinary(dec, &r)
return wstateData.UnmarshalBinary(dec, r)
}

// Otherwise decode the old way
Expand Down
50 changes: 25 additions & 25 deletions pkg/database/bpt/types_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd962aa

Please sign in to comment.