Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Oct 22, 2024
1 parent 4164375 commit f01e48e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/log/distributed.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ func (s *StreamLayer) Accept() (net.Conn, error) {
if err != nil {
return nil, err
}
if bytes.Compare([]byte{byte(RaftRPC)}, b) != 0 {
if !bytes.Equal([]byte{byte(RaftRPC)}, b) {
return nil, fmt.Errorf("not a raft rpc")
}
if s.serverTLSConfig != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/log/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func TestStoreClose(t *testing.T) {
err = s.Close()
require.NoError(t, err)

f, afterSize, err := openFile(f.Name())
_, afterSize, err := openFile(f.Name())
require.NoError(t, err)
require.True(t, afterSize > beforeSize)
}
Expand Down

0 comments on commit f01e48e

Please sign in to comment.