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
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:
parent
3984e24826
commit
e9a6fb74a0
5
redis.go
5
redis.go
@ -56,13 +56,16 @@ var (
|
||||
)
|
||||
|
||||
type Store struct {
|
||||
opts store.Options
|
||||
cli goredis.UniversalClient
|
||||
pool *pool.StringsPool
|
||||
connected *atomic.Bool
|
||||
opts store.Options
|
||||
}
|
||||
|
||||
func (r *Store) Connect(ctx context.Context) error {
|
||||
if r.connected.Load() {
|
||||
return nil
|
||||
}
|
||||
if r.cli == nil {
|
||||
return store.ErrNotConnected
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user