reconnect to correct peer

This commit is contained in:
Cassandra Heart 2024-10-31 19:13:34 -05:00
parent ad55d280f8
commit 54ebd9acb8
No known key found for this signature in database
GPG Key ID: 6352152859385958

View File

@ -131,7 +131,7 @@ var allCmd = &cobra.Command{
time.Sleep(10 * time.Second)
cc.Close()
cc = nil
err = pubSub.Reconnect([]byte(peerId))
err = pubSub.Reconnect([]byte(bpeerId))
if err != nil {
logger.Error(
"got error response, waiting...",
@ -234,7 +234,7 @@ var allCmd = &cobra.Command{
cc.Close()
cc = nil
time.Sleep(10 * time.Second)
err = pubSub.Reconnect([]byte(peerId))
err = pubSub.Reconnect([]byte(bpeerId))
if err != nil {
logger.Error(
"got error response, waiting...",