From c8983baf3a993e1603cde6b5b6ee73a906b226b8 Mon Sep 17 00:00:00 2001 From: Mahak Mukhi Date: Mon, 30 Jan 2017 12:09:08 -0800 Subject: [PATCH] const variable name change for goimports --- keepalive/keepalive.go | 6 +++--- transport/transport.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/keepalive/keepalive.go b/keepalive/keepalive.go index 4a18d52c..aeca2a6b 100644 --- a/keepalive/keepalive.go +++ b/keepalive/keepalive.go @@ -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) ) diff --git a/transport/transport.go b/transport/transport.go index f6b1754b..7b34e99f 100644 --- a/transport/transport.go +++ b/transport/transport.go @@ -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.