code: func OptsFromPeerConfig(peerCfg *fab.PeerConfig) []options.Opt {
  
  	opts := []options.Opt{
  		WithHostOverride(getServerNameOverride(peerCfg)),
  		WithFailFast(getFailFast(peerCfg)),
  		WithKeepAliveParams(getKeepAliveOptions(peerCfg)),
  		WithCertificate(peerCfg.TLSCACert),
  	}
  	if isInsecureAllowed(peerCfg) {
  		opts = append(opts, WithInsecure())
  	}
  
  	return opts
  }
docs: // OptsFromPeerConfig returns a set of connection options from the given peer config