code: func FromPeerConfig(config fab.EndpointConfig, peer fab.Peer, peerCfg *fab.PeerConfig) *EventEndpoint {
  	opts := comm.OptsFromPeerConfig(peerCfg)
  	opts = append(opts, comm.WithConnectTimeout(config.Timeout(fab.PeerConnection)))
  
  	return &EventEndpoint{
  		Peer: peer,
  		opts: opts,
  	}
  }
docs: // FromPeerConfig creates a new EventEndpoint from the given config