mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
lint warnings
This commit is contained in:
parent
4e224d64c6
commit
f1a9647c8a
@ -278,7 +278,7 @@ func (v *Connection) Read(b []byte) (int, error) {
|
|||||||
return 0, io.EOF
|
return 0, io.EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
duration := time.Duration(time.Minute)
|
duration := time.Minute
|
||||||
if !v.rd.IsZero() {
|
if !v.rd.IsZero() {
|
||||||
duration = v.rd.Sub(time.Now())
|
duration = v.rd.Sub(time.Now())
|
||||||
if duration < 0 {
|
if duration < 0 {
|
||||||
@ -314,7 +314,7 @@ func (v *Connection) Write(b []byte) (int, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
duration := time.Duration(time.Minute)
|
duration := time.Minute
|
||||||
if !v.wd.IsZero() {
|
if !v.wd.IsZero() {
|
||||||
duration = v.wd.Sub(time.Now())
|
duration = v.wd.Sub(time.Now())
|
||||||
if duration < 0 {
|
if duration < 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user