Fix lint issues

This commit is contained in:
9seconds
2021-03-25 17:40:38 +03:00
parent c3e8e8b1fe
commit 6d92d5fe21
5 changed files with 24 additions and 17 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"io"
"net"
"sync"
"time"
@@ -121,7 +122,7 @@ func (p *Proxy) Shutdown() {
p.workerPool.Release()
}
func (p *Proxy) doFakeTLSHandshake(ctx *streamContext, conn net.Conn) error {
func (p *Proxy) doFakeTLSHandshake(ctx *streamContext, conn io.ReadWriter) error {
rec := record.AcquireRecord()
defer record.ReleaseRecord(rec)
@@ -202,7 +203,7 @@ func (p *Proxy) doTelegramCall(ctx *streamContext) error {
return nil
}
func NewProxy(opts ProxyOpts) (*Proxy, error) { // nolint: cyclop
func NewProxy(opts ProxyOpts) (*Proxy, error) { // nolint: cyclop, funlen
switch {
case opts.Network == nil:
return nil, ErrNetworkIsNotDefined