From 62c2de51d4b680a34b9c42f1afc050111d68174c Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 15 Apr 2024 08:41:58 +0300 Subject: [PATCH] fixup strings pool Signed-off-by: Vasiliy Tolstov --- redis.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/redis.go b/redis.go index ca5077d..cccbf6d 100755 --- a/redis.go +++ b/redis.go @@ -46,7 +46,7 @@ var ( type Store struct { opts store.Options cli redisClient - pool pool.Pool[strings.Builder] + pool pool.Pool[*strings.Builder] } type redisClient interface { @@ -607,6 +607,7 @@ func (r *Store) configure() error { r.cli = redis.NewClusterClient(redisClusterOptions) } + r.pool = pool.NewPool(func() *strings.Builder { return &strings.Builder{} }) return nil }