]> Cypherpunks repositories - gostls13.git/commit
log/slog: use atomic.Pointer instead of atomic.Value
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Fri, 25 Aug 2023 16:42:42 +0000 (16:42 +0000)
committerAlan Donovan <adonovan@google.com>
Tue, 29 Aug 2023 14:56:38 +0000 (14:56 +0000)
commit111ab754324e5d5646f84354bc1a134907baaa49
tree68c4482af1fe8cc5066b78cc3a95939b4b32d813
parent92f7209ebd11566c846032d021c1b2d18bd57843
log/slog: use atomic.Pointer instead of atomic.Value

There is no need to use atomic.Value, atomic.Pointer should also
be more performant here.

Change-Id: I04cc1befbe1112665a9d9e16197ea3caef5e5fa3
GitHub-Last-Rev: 577902519ff744c936c5e707802f66aeae32c760
GitHub-Pull-Request: golang/go#62288
Reviewed-on: https://go-review.googlesource.com/c/go/+/523035
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Mateusz Poliwczak <mpoliwczak34@gmail.com>
src/log/slog/logger.go