From 613ef8db028798025230d4f91d5d3ea311dc503f Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 24 Jan 2020 20:56:56 +0100 Subject: [PATCH] p2p/simulations/adapters: adapt to new NodeDialer interface --- p2p/simulations/adapters/inproc.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/p2p/simulations/adapters/inproc.go b/p2p/simulations/adapters/inproc.go index 9787082e18..651d9546ae 100644 --- a/p2p/simulations/adapters/inproc.go +++ b/p2p/simulations/adapters/inproc.go @@ -17,6 +17,7 @@ package adapters import ( + "context" "errors" "fmt" "math" @@ -126,7 +127,7 @@ func (s *SimAdapter) NewNode(config *NodeConfig) (Node, error) { // Dial implements the p2p.NodeDialer interface by connecting to the node using // an in-memory net.Pipe -func (s *SimAdapter) Dial(dest *enode.Node) (conn net.Conn, err error) { +func (s *SimAdapter) Dial(ctx context.Context, dest *enode.Node) (conn net.Conn, err error) { node, ok := s.GetNode(dest.ID()) if !ok { return nil, fmt.Errorf("unknown node: %s", dest.ID())