// Check the existence of an address in the list of connections.
Check the existence of an address in the list of connections.
// Check the existence of an address in the list of connections .
func (node *Node) InConnections(address string) bool {
	node.mutex.Lock()
	defer node.mutex.Unlock()
	_, ok := node.connections[address]
	return ok
}
func ( node * Node ) InConnections ( address string ) bool { node . mutex . Lock ( ) defer node . mutex . Unlock ( ) _ , ok := node . connections [ address ] return ok }
Check the existence of an address in the list of connections.
Check the existence of an address in the list of connections .