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:
@ -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()
|
||||
|
Reference in New Issue
Block a user