Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemadero committed Dec 7, 2022
1 parent ccaea73 commit 6d9c39e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions local/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ func (node *localNode) AttachPeer(ctx context.Context, router router.InboundHand
}
signerIP := ips.NewDynamicIPPort(net.IPv6zero, 0)
tls := tlsCert.PrivateKey.(crypto.Signer)
gossipTracker, err := peer.NewGossipTracker(prometheus.NewRegistry(), "anr")
if err != nil {
return nil, err
}
config := &peer.Config{
Metrics: metrics,
MessageCreator: mc,
Expand All @@ -137,6 +141,7 @@ func (node *localNode) AttachPeer(ctx context.Context, router router.InboundHand
PongTimeout: constants.DefaultPingPongTimeout,
MaxClockDifference: time.Minute,
ResourceTracker: resourceTracker,
GossipTracker: gossipTracker,
IPSigner: peer.NewIPSigner(signerIP, tls),
}
_, conn, cert, err := clientUpgrader.Upgrade(conn)
Expand Down

0 comments on commit 6d9c39e

Please sign in to comment.