Skip to content

Commit

Permalink
fix: panic on rueidiscompat.SSubscribe due to unnecessary PING (#636)
Browse files Browse the repository at this point in the history
Signed-off-by: Rueian <[email protected]>
  • Loading branch information
rueian authored Sep 16, 2024
1 parent 5135acd commit 7c8a63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rueidiscompat/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func (p *pubsub) resubscribe(ctx context.Context) rueidis.DedicatedClient {
defer p.mu.Unlock()
retry:
c := p.mconn()
ok := false
ok := len(p.schannels) == 0 && len(p.channels) == 0 && len(p.patterns) == 0
if len(p.schannels) != 0 {
builder := c.B().Ssubscribe().Channel()
for channel, ok := range p.schannels {
Expand Down

0 comments on commit 7c8a63e

Please sign in to comment.