aboutsummaryrefslogtreecommitdiff
path: root/src/net/http
diff options
context:
space:
mode:
authorJohn Bampton <jbampton@gmail.com>2021-03-13 11:25:15 +0000
committerEmmanuel Odeke <emmanuel@orijtech.com>2021-03-13 11:56:59 +0000
commit289d34a465d46e5c5c07034f5d54afbfda06f5b9 (patch)
tree97aec5ba5660c49e50e6b1df2bd46db0770a5699 /src/net/http
parentb3235b75d109f06eec0d3603c606b2d8373b9d4c (diff)
downloadgo-289d34a465d46e5c5c07034f5d54afbfda06f5b9.tar.xz
all: remove duplicate words
Change-Id: Ib0469232a2b69a869e58d5d24990ad74ac96ea56 GitHub-Last-Rev: eb38e049ee1e773392ff3747e1eb2af20dd50dcd GitHub-Pull-Request: golang/go#44805 Reviewed-on: https://go-review.googlesource.com/c/go/+/299109 Trust: Emmanuel Odeke <emmanuel@orijtech.com> Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/net/http')
-rw-r--r--src/net/http/h2_bundle.go2
-rw-r--r--src/net/http/server.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/http/h2_bundle.go b/src/net/http/h2_bundle.go
index 0379848e70..feecc8ce9c 100644
--- a/src/net/http/h2_bundle.go
+++ b/src/net/http/h2_bundle.go
@@ -7297,7 +7297,7 @@ func (cc *http2ClientConn) canTakeNewRequestLocked() bool {
return st.canTakeNewRequest
}
-// tooIdleLocked reports whether this connection has been been sitting idle
+// tooIdleLocked reports whether this connection has been sitting idle
// for too much wall time.
func (cc *http2ClientConn) tooIdleLocked() bool {
// The Round(0) strips the monontonic clock reading so the
diff --git a/src/net/http/server.go b/src/net/http/server.go
index ad99741177..ea3486289a 100644
--- a/src/net/http/server.go
+++ b/src/net/http/server.go
@@ -2638,7 +2638,7 @@ type Server struct {
// value.
ConnContext func(ctx context.Context, c net.Conn) context.Context
- inShutdown atomicBool // true when when server is in shutdown
+ inShutdown atomicBool // true when server is in shutdown
disableKeepAlives int32 // accessed atomically.
nextProtoOnce sync.Once // guards setupHTTP2_* init