Skip to content

Commit

Permalink
internal/mux: remove duplicated code
Browse files Browse the repository at this point in the history
Updates #254
  • Loading branch information
hajimehoshi committed Dec 23, 2024
1 parent b1d8c7c commit 15e840a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/mux/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,7 @@ func (p *playerImpl) setBufferSize(bufferSize int) {
p.bufferSize = p.mux.defaultBufferSize()
}
if orig != p.bufferSize {
p.bufPool = &sync.Pool{
New: func() interface{} {
buf := make([]byte, p.bufferSize)
return &buf
},
}
p.bufPool = nil
}
}

Expand Down

0 comments on commit 15e840a

Please sign in to comment.