fixup strings pool
Some checks failed
build / test (push) Has been cancelled
build / lint (push) Has been cancelled
codeql / analyze (go) (push) Has been cancelled

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 62c2de51d4

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
}