Skip to content

Commit

Permalink
fix: already subscribe to topic
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxinfeng96 committed Sep 12, 2023
1 parent 584756b commit 33968f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conn/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,10 @@ func DialChannelWithClient(endpoint string, config *tls.Config, groupID int) (*C
if err = ch.handshakeChannel(); err != nil {
logrus.Errorf("handshake channel protocol failed, use default protocol version")
}
ch.topicHandlers[blockNotifyPrefix+strconv.Itoa(groupID)] = nil
if err = ch.sendSubscribedTopics(); err != nil {
return nil, fmt.Errorf("subscriber block nofity failed")
}
// ch.topicHandlers[blockNotifyPrefix+strconv.Itoa(groupID)] = nil
// if err = ch.sendSubscribedTopics(); err != nil {
// return nil, fmt.Errorf("subscriber block nofity failed")
// }
return ch, nil
})
}
Expand Down

0 comments on commit 33968f0

Please sign in to comment.