const variable name change for goimports

This commit is contained in:
Mahak Mukhi
2017-01-30 12:09:08 -08:00
parent 0ba0eafe63
commit c8983baf3a
2 changed files with 4 additions and 4 deletions

View File

@ -22,13 +22,13 @@ func (p *Params) Validate() {
p.Time = Infinity
}
if p.Timeout == 0 {
p.Time = TwentySec
p.Time = TwentyScnd
}
}
const (
// Infinity is the default value of keepalive time.
Infinity = time.Duration(math.MaxInt64)
// TwentySec is the default value of timeout.
TwentySec = time.Duration(20 * time.Second)
// TwentyScnd is the default value of timeout.
TwentyScnd = time.Duration(20 * time.Second)
)

View File

@ -392,7 +392,7 @@ type ConnectOptions struct {
// default values for keepalive parameters.
var defaultKeepaliveParams = &keepalive.Params{
Time: keepalive.Infinity, // default to infinite.
Timeout: keepalive.TwentySec,
Timeout: keepalive.TwentyScnd,
}
// TargetInfo contains the information of the target such as network address and metadata.