]> Cypherpunks repositories - gostls13.git/commit
all: make use of sync.Map.Clear
authorJes Cok <xigua67damn@gmail.com>
Fri, 26 Apr 2024 13:17:57 +0000 (21:17 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 26 Apr 2024 21:32:11 +0000 (21:32 +0000)
commitb439f3285962e9a263ea7511f19aac0a875d17cf
treeeacbf26d3ebb2364d4543aeadce0cf9ce4bd887c
parent0e7f5cf30ba43f4d388803642b4173e5af20e761
all: make use of sync.Map.Clear

Since CL 515015 added sync.Map.Clear method, we can use it to make
the code simpler and clearer.

Change-Id: I29edc969431b4fd95cd5fd864953a71ca1538dd3
Reviewed-on: https://go-review.googlesource.com/c/go/+/582015
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Joedian Reid <joedian@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
src/cmd/go/internal/par/work.go
src/expvar/expvar.go
src/mime/type.go