fix(chat2): /peers

This commit is contained in:
Richard Ramos 2023-01-03 16:17:55 -04:00 committed by RichΛrd
parent f2c23be803
commit 49a35e8168
2 changed files with 4 additions and 5 deletions

View File

@ -195,11 +195,11 @@ func (c *Chat) parseInput() {
c.ui.ErrorMessage(err)
return
}
peerInfoMsg += fmt.Sprintf(" Protocols: %s\n", strings.Join(peerProtocols, ", "))
peerInfoMsg += " Addresses:\n"
peerInfoMsg += fmt.Sprintf(" - %s:\n", p.Pretty())
peerInfoMsg += fmt.Sprintf("• %s:\n", p.Pretty())
peerInfoMsg += fmt.Sprintf(" Protocols: %s\n", strings.Join(peerProtocols, ", "))
peerInfoMsg += " Addresses:\n"
for _, addr := range peerInfo.Addrs {
peerInfoMsg += fmt.Sprintf(" %s/p2p/%s\n", addr.String(), p.Pretty())
peerInfoMsg += fmt.Sprintf(" - %s/p2p/%s\n", addr.String(), p.Pretty())
}
}
c.ui.InfoMessage(peerInfoMsg)

View File

@ -33,7 +33,6 @@ func execute(options Options) {
node.WithPrivateKey(options.NodeKey),
node.WithNTP(),
node.WithHostAddress(hostAddr),
node.WithWakuStore(false),
}
if options.Relay.Enable {