mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-06-10 09:50:43 +00:00
fix lint warnings
This commit is contained in:
parent
cf97b8b4d0
commit
2371617a22
|
@ -152,11 +152,7 @@ func (v *Handler) Process(ctx context.Context, outboundRay ray.OutboundRay, dial
|
|||
|
||||
reader.SetBuffered(false)
|
||||
bodyReader := session.DecodeResponseBody(request, reader)
|
||||
if err := buf.Copy(bodyReader, output, buf.UpdateActivity(timer)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return buf.Copy(bodyReader, output, buf.UpdateActivity(timer))
|
||||
})
|
||||
|
||||
if err := signal.ErrorOrFinish2(ctx, requestDone, responseDone); err != nil {
|
||||
|
|
|
@ -129,8 +129,7 @@ func DialKCP(ctx context.Context, dest net.Destination) (internet.Connection, er
|
|||
conv := uint16(atomic.AddUint32(&globalConv, 1))
|
||||
session := NewConnection(conv, conn, kcpSettings)
|
||||
|
||||
var iConn internet.Connection
|
||||
iConn = session
|
||||
var iConn internet.Connection = session
|
||||
|
||||
if securitySettings := internet.SecuritySettingsFromContext(ctx); securitySettings != nil {
|
||||
switch securitySettings := securitySettings.(type) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user