Get rid of buffersize everywhere

This commit is contained in:
9seconds
2021-11-28 18:08:40 +03:00
parent d19cfb1df4
commit 66f4d967e7
11 changed files with 12 additions and 123 deletions
-8
View File
@@ -131,14 +131,6 @@ func (p ProxyOpts) valid() error {
return nil
}
func (p ProxyOpts) getBufferSize() int {
if p.BufferSize < 1 {
return DefaultBufferSize
}
return int(p.BufferSize)
}
func (p ProxyOpts) getConcurrency() int {
if p.Concurrency == 0 {
return DefaultConcurrency