minor fixes
Some checks failed
dependabot-automerge / automerge (pull_request) Has been skipped
automerge / automerge (pull_request) Failing after 13s
autoapprove / autoapprove (pull_request) Failing after 25s
codeql / analyze (go) (pull_request) Failing after 54s
prbuild / test (pull_request) Failing after 5m17s
prbuild / lint (pull_request) Successful in 9m50s

This commit is contained in:
Василий Толстов 2024-11-27 01:56:15 +03:00
parent 3984e24826
commit e9a6fb74a0

View File

@ -56,13 +56,16 @@ var (
) )
type Store struct { type Store struct {
opts store.Options
cli goredis.UniversalClient cli goredis.UniversalClient
pool *pool.StringsPool pool *pool.StringsPool
connected *atomic.Bool connected *atomic.Bool
opts store.Options
} }
func (r *Store) Connect(ctx context.Context) error { func (r *Store) Connect(ctx context.Context) error {
if r.connected.Load() {
return nil
}
if r.cli == nil { if r.cli == nil {
return store.ErrNotConnected return store.ErrNotConnected
} }