]> Cypherpunks repositories - gostls13.git/commit
net: simplify readProtocols via sync.OnceFunc
author1911860538 <alxps1911@gmail.com>
Fri, 18 Apr 2025 14:11:29 +0000 (14:11 +0000)
committerGopher Robot <gobot@golang.org>
Sat, 19 Apr 2025 23:11:06 +0000 (16:11 -0700)
commita204ed53d907c3b325e3c2bdd6f847a8f97e90d9
treedf17deeb6aa7c4d55c7c2754114ee4b124dfeda8
parentad0434200c4b17c339852c8c0ec0c0212f8563d9
net: simplify readProtocols via sync.OnceFunc

In this case, using sync.OnceFunc is a better choice.

Change-Id: I52d27b9741265c90300a04a03537020e1aaaaaa7
GitHub-Last-Rev: a281daea255f1508a9042e8c8c7eb7ca1cef2430
GitHub-Pull-Request: golang/go#73434
Reviewed-on: https://go-review.googlesource.com/c/go/+/666635
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
src/net/lookup_unix.go