1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-16 13:21:51 +03:00

perf: reduce unnecessary memory allocation (#3399)

Signed-off-by: fukua95 <fukua95@gmail.com>
Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
This commit is contained in:
fukua95
2025-06-09 16:59:58 +08:00
committed by GitHub
parent 0f40ae3ff2
commit eb40ac8328
6 changed files with 29 additions and 59 deletions

View File

@ -460,7 +460,7 @@ var _ = Describe("Commands", func() {
}
// read the defaults to set them back later
for setting, _ := range expected {
for setting := range expected {
val, err := client.ConfigGet(ctx, setting).Result()
Expect(err).NotTo(HaveOccurred())
defaults[setting] = val[setting]