code: func WithMaxConnectAttempts(value uint) options.Opt {
  	return func(p options.Params) {
  		if setter, ok := p.(maxConnectAttemptsSetter); ok {
  			setter.SetMaxConnectAttempts(value)
  		}
  	}
  }
docs: // WithMaxConnectAttempts sets the maximum number of times that the client will attempt
  // to connect to the server. If set to 0 then the client will try until it is stopped.