mirror of
https://github.com/harshabose/buffer.git
synced 2025-09-27 03:35:59 +08:00
increased input buffer to improve performance
This commit is contained in:
@@ -20,7 +20,7 @@ func CreateChannelBuffer[T any](ctx context.Context, size int, pool Pool[T]) *Ch
|
||||
buffer := &ChannelBuffer[T]{
|
||||
pool: pool,
|
||||
bufferChannel: make(chan *T, size),
|
||||
inputBuffer: make(chan *T),
|
||||
inputBuffer: make(chan *T, size),
|
||||
closed: false,
|
||||
ctx: ctx,
|
||||
}
|
||||
|
Reference in New Issue
Block a user