diff options
author | Felix Lange <fjl@twurst.com> | 2016-05-18 17:31:00 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-05-18 18:19:04 +0800 |
commit | 542b839ec74ff0ce94ab0d34e25531f5819d95d1 (patch) | |
tree | 75fa706a695285a134efc5d3c7ed4a5f497e04b3 /p2p/dial_test.go | |
parent | c8a8ad97f7e8889ca9f3aece7ddb50cce8ef18c7 (diff) | |
download | dexon-542b839ec74ff0ce94ab0d34e25531f5819d95d1.tar.gz dexon-542b839ec74ff0ce94ab0d34e25531f5819d95d1.tar.zst dexon-542b839ec74ff0ce94ab0d34e25531f5819d95d1.zip |
node, p2p: move network config out of Server
This silences a go vet message about copying p2p.Server in package node.
Diffstat (limited to 'p2p/dial_test.go')
-rw-r--r-- | p2p/dial_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/p2p/dial_test.go b/p2p/dial_test.go index 3447660a3..05d9b7562 100644 --- a/p2p/dial_test.go +++ b/p2p/dial_test.go @@ -478,7 +478,8 @@ func TestDialResolve(t *testing.T) { } // Now run the task, it should resolve the ID once. - srv := &Server{ntab: table, Dialer: &net.Dialer{Deadline: time.Now().Add(-5 * time.Minute)}} + config := Config{Dialer: &net.Dialer{Deadline: time.Now().Add(-5 * time.Minute)}} + srv := &Server{ntab: table, Config: config} tasks[0].Do(srv) if !reflect.DeepEqual(table.resolveCalls, []discover.NodeID{dest.ID}) { t.Fatalf("wrong resolve calls, got %v", table.resolveCalls) |