mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-17 06:04:20 +01:00
pool: fix typo
This commit is contained in:
@@ -26,7 +26,7 @@ type ReadBuffer struct {
|
||||
}
|
||||
|
||||
// NewReadBuffer returns a freshly instantiated ReadBuffer, using the given
|
||||
// gcInterval and expieryInterval.
|
||||
// gcInterval and expiryInterval.
|
||||
func NewReadBuffer(gcInterval, expiryInterval time.Duration) *ReadBuffer {
|
||||
return &ReadBuffer{
|
||||
pool: NewRecycle(
|
||||
|
||||
@@ -86,7 +86,7 @@ func (w *Write) newWorkerState() WorkerState {
|
||||
}
|
||||
|
||||
// Cleanup returns the writeBuf to the underlying buffer pool, and removes the
|
||||
// goroutine's reference to the readBuf and encapsulating buf.
|
||||
// goroutine's reference to the writeBuf and encapsulating buf.
|
||||
func (w *writeWorkerState) Cleanup() {
|
||||
w.bufferPool.Return(w.writeBuf)
|
||||
w.writeBuf = nil
|
||||
|
||||
Reference in New Issue
Block a user