mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 21:54:01 +03:00
Revert "Add new TCPBufferSize parameter to network"
This reverts commit 57cb1b5aa0.
This commit is contained in:
@@ -60,10 +60,6 @@ func (d *defaultDialer) DialContext(ctx context.Context, network, address string
|
||||
return tcpConn, nil
|
||||
}
|
||||
|
||||
func (d *defaultDialer) TCPBufferSize() int {
|
||||
return d.bufferSize
|
||||
}
|
||||
|
||||
func NewDefaultDialer(timeout time.Duration, bufferSize int) (Dialer, error) {
|
||||
switch {
|
||||
case timeout < 0:
|
||||
|
||||
Reference in New Issue
Block a user