p2p/simulations: remove JSON annotation from private fields of Node

As unexported fields are not serialized.
This commit is contained in:
Ferenc Szabo 2019-01-31 15:49:25 +01:00
parent 7d6bc331e2
commit f2aba104b9

View file

@ -586,8 +586,8 @@ type Node struct {
Config *adapters.NodeConfig `json:"config"` Config *adapters.NodeConfig `json:"config"`
// up tracks whether or not the node is running // up tracks whether or not the node is running
up bool `json:"up"` up bool
upMu sync.RWMutex `json:"-"` upMu sync.RWMutex
} }
func (n *Node) Up() bool { func (n *Node) Up() bool {