Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin committed Jul 14, 2024
1 parent ae0bbcb commit 5274e5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/transport/waku.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func (n *Node) Initialize() error {

options := []node.WakuNodeOption{
node.WithLogger(n.logger.Named("waku")),
//node.WithDNS4Domain(),
node.WithLogLevel(zap.DebugLevel),
node.WithHostAddress(hostAddr),
node.WithConnectionNotification(peerConnection),
Expand Down Expand Up @@ -365,7 +364,7 @@ func (n *Node) watchConnectionStatus() {
} else {
delete(n.connectedPeers, status.PeerID)
}
//count := n.waku.PeerCount()
// using manual calculation instead of n.waku.PeerCount() for simpler testing
count := len(n.connectedPeers)
n.notifyConnectionStatus(ConnectionStatus{
IsOnline: count > 0,
Expand Down

0 comments on commit 5274e5b

Please sign in to comment.