fixup strings pool
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
741b2310ec
commit
82ff77cb7a
3
redis.go
3
redis.go
@ -46,7 +46,7 @@ var (
|
|||||||
type Store struct {
|
type Store struct {
|
||||||
opts store.Options
|
opts store.Options
|
||||||
cli redisClient
|
cli redisClient
|
||||||
pool pool.Pool[strings.Builder]
|
pool pool.Pool[*strings.Builder]
|
||||||
}
|
}
|
||||||
|
|
||||||
type redisClient interface {
|
type redisClient interface {
|
||||||
@ -607,6 +607,7 @@ func (r *Store) configure() error {
|
|||||||
r.cli = redis.NewClusterClient(redisClusterOptions)
|
r.cli = redis.NewClusterClient(redisClusterOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r.pool = pool.NewPool(func() *strings.Builder { return &strings.Builder{} })
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user