simplifying the variables

pull/203/head
ak 6 years ago
parent 411328709b
commit b007e648dc
  1. 3
      internal/beaconchain/libs/beaconchain_test.go

@ -13,8 +13,7 @@ import (
var ( var (
leader1 = &bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "1"}} 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"}} 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"}}, leaders = []*bcconn.NodeInfo{leader1, leader2}
&bcconn.NodeInfo{Self: p2p.Peer{IP: "127.0.0.1", Port: "2"}}}
shardLeaderMap = map[int]*bcconn.NodeInfo{ shardLeaderMap = map[int]*bcconn.NodeInfo{
0: leader1, 0: leader1,
1: leader2, 1: leader2,

Loading…
Cancel
Save