fixup strings pool

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-04-15 08:41:58 +03:00
parent 741b2310ec
commit 82ff77cb7a

View File

@ -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
}