Compare commits
1 Commits
b2d89018b8
...
70047c85c3
Author | SHA1 | Date | |
---|---|---|---|
70047c85c3 |
4
redis.go
4
redis.go
@@ -770,9 +770,9 @@ func (r *Store) getKey(b *strings.Builder, mainNamespace string, opNamespace str
|
||||
return b.String()
|
||||
}
|
||||
|
||||
func (r *Store) connect(ctx context.Context) (err error) {
|
||||
func (r *Store) connect(ctx context.Context) error {
|
||||
if r.isConnected.Load() == 0 {
|
||||
if err = r.cli.Ping(ctx).Err(); err != nil {
|
||||
if err := r.cli.Ping(ctx).Err(); err != nil {
|
||||
setSpanError(ctx, err)
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user