From b007e648dc1cb66766f2473adf81bb23df87515d Mon Sep 17 00:00:00 2001 From: ak Date: Thu, 3 Jan 2019 13:51:53 -0800 Subject: [PATCH] simplifying the variables --- internal/beaconchain/libs/beaconchain_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/beaconchain/libs/beaconchain_test.go b/internal/beaconchain/libs/beaconchain_test.go index 7c1c394e9..4322300c8 100644 --- a/internal/beaconchain/libs/beaconchain_test.go +++ b/internal/beaconchain/libs/beaconchain_test.go @@ -11,10 +11,9 @@ import ( ) var ( - leader1 = &bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "1"}} - leader2 = &bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "2"}} - leaders = []*bcconn.NodeInfo{&bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "1"}}, - &bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "2"}}} + leader1 = &bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "1"}} + leader2 = &bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "2"}} + leaders = []*bcconn.NodeInfo{leader1, leader2} shardLeaderMap = map[int]*bcconn.NodeInfo{ 0: leader1, 1: leader2,