Skip to content

Commit

Permalink
Remove unused waiting field
Browse files Browse the repository at this point in the history
Remove unused waiting field
  • Loading branch information
cnderrauber committed Jul 23, 2024
1 parent a0000b2 commit 6069ab0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packetio/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ type Buffer struct {
data []byte
head, tail int

notify chan struct{}
waiting bool
closed bool
notify chan struct{}
closed bool

count int
limitCount, limitSize int
Expand Down Expand Up @@ -271,7 +270,6 @@ func (b *Buffer) Close() (err error) {
return nil
}

b.waiting = false
b.closed = true
close(b.notify)
b.mutex.Unlock()
Expand Down

0 comments on commit 6069ab0

Please sign in to comment.