Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Ron Federman <[email protected]>
  • Loading branch information
RonFed committed Aug 9, 2023
1 parent e91c6d3 commit 770b493
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ringbuf/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func TestReaderNoWakeup(t *testing.T) {
t.Fatal("Expected 0 as return value, got", errno)
}

rd.SetDeadline(time.Now().Add(100*time.Millisecond))
rd.SetDeadline(time.Now().Add(100 * time.Millisecond))

record, err := rd.Read()
if !errors.Is(err, os.ErrDeadlineExceeded) {
Expand Down
2 changes: 1 addition & 1 deletion ringbuf/ring.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (rr *ringReader) skipRead(skipBytes uint64) {
rr.cons += clamp(rr.cons, atomic.LoadUint64(rr.prod_pos), skipBytes)
}

func (rr *ringReader) isEmpty() (bool) {
func (rr *ringReader) isEmpty() bool {
cons := atomic.LoadUint64(rr.cons_pos)
prod := atomic.LoadUint64(rr.prod_pos)

Expand Down

0 comments on commit 770b493

Please sign in to comment.