]> Cypherpunks repositories - gostls13.git/commit
net/http: use sync.OnceFunc, sync.OnceValue
authorapocelipes <seve3r@outlook.com>
Thu, 26 Sep 2024 08:23:13 +0000 (08:23 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 26 Sep 2024 19:49:02 +0000 (19:49 +0000)
commit3f2737f5ddea3375303b952e3d87843d7fc0f986
treee7cc42f0a1429f3c6d8c5319719d1848d6d3b84e
parent9ace960d545d29ff6326732bed36b5a68ba3e7e7
net/http: use sync.OnceFunc, sync.OnceValue

Use sync.OnceFunc and sync.OnceValue to simplify the code.

Change-Id: Ie47e0444c2b9d3260f6ef94cdc6ee8ee5bcf9f71
GitHub-Last-Rev: 520afbec2a392d73dfd9697035804be7c7cc8b77
GitHub-Pull-Request: golang/go#69634
Reviewed-on: https://go-review.googlesource.com/c/go/+/616037
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/net/http/client.go
src/net/http/transport_test.go