code: func WaitPeerListening(network, address string, timeout time.Duration) bool {
  	return WaitFunc(100*time.Millisecond, timeout, func() bool {
  		c, err := net.Dial(network, address)
  		if err == nil {
  			c.Close()
  			return true
  		}
  
  		return false
  	})
  }
docs: // WaitPeerListening wait for specified peer be ready for new connections.