1
0
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:
Darien Raymond 2016-12-25 00:01:24 +01:00
parent 4e224d64c6
commit f1a9647c8a
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -278,7 +278,7 @@ func (v *Connection) Read(b []byte) (int, error) {
return 0, io.EOF
}
duration := time.Duration(time.Minute)
duration := time.Minute
if !v.rd.IsZero() {
duration = v.rd.Sub(time.Now())
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() {
duration = v.wd.Sub(time.Now())
if duration < 0 {