1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +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

@ -410,7 +410,7 @@ var _ = Describe("race", func() {
_, err = p.Get(ctx)
Expect(err).To(MatchError(pool.ErrPoolTimeout))
p.Put(ctx, conn)
conn, err = p.Get(ctx)
_, err = p.Get(ctx)
Expect(err).NotTo(HaveOccurred())
stats = p.Stats()