const variable name change for goimports
This commit is contained in:
@ -22,13 +22,13 @@ func (p *Params) Validate() {
|
|||||||
p.Time = Infinity
|
p.Time = Infinity
|
||||||
}
|
}
|
||||||
if p.Timeout == 0 {
|
if p.Timeout == 0 {
|
||||||
p.Time = TwentySec
|
p.Time = TwentyScnd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// Infinity is the default value of keepalive time.
|
// Infinity is the default value of keepalive time.
|
||||||
Infinity = time.Duration(math.MaxInt64)
|
Infinity = time.Duration(math.MaxInt64)
|
||||||
// TwentySec is the default value of timeout.
|
// TwentyScnd is the default value of timeout.
|
||||||
TwentySec = time.Duration(20 * time.Second)
|
TwentyScnd = time.Duration(20 * time.Second)
|
||||||
)
|
)
|
||||||
|
@ -392,7 +392,7 @@ type ConnectOptions struct {
|
|||||||
// default values for keepalive parameters.
|
// default values for keepalive parameters.
|
||||||
var defaultKeepaliveParams = &keepalive.Params{
|
var defaultKeepaliveParams = &keepalive.Params{
|
||||||
Time: keepalive.Infinity, // default to infinite.
|
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.
|
// TargetInfo contains the information of the target such as network address and metadata.
|
||||||
|
Reference in New Issue
Block a user