diff --git a/examples/client.go b/examples/client.go index 9e83d9a..7162408 100644 --- a/examples/client.go +++ b/examples/client.go @@ -99,8 +99,7 @@ func main() { fmt.Println("zkUrl: ", zkUrl) clientOptions = append(clientOptions, realis.ZKUrl(zkUrl)) } else { - clientOptions = append(clientOptions, realis.SchedulerUrl(url), - realis.ZookeeperOptions(realis.ZKAuroraPortOverride(2343), realis.ZKAuroraSchemeOverride("https"))) + clientOptions = append(clientOptions, realis.SchedulerUrl(url)) } r, err = realis.NewRealisClient(clientOptions...) diff --git a/realis.go b/realis.go index e94e1e7..f1cb09f 100644 --- a/realis.go +++ b/realis.go @@ -197,9 +197,8 @@ func ClientCerts(clientKey, clientCert string) ClientOption { } // Use this option if you'd like to override default settings for connecting to Zookeeper. -// For example, this can be used to override the port on which to communicate with Aurora. -// This may be helpful if Aurora is behind another service and running on a port that is different -// what is advertised in Zookeeper. +// For example, this can be used to override the scheme to be used for communicating with Aurora (e.g. https). +// See zk.go for what is possible to set as an option. func ZookeeperOptions(opts ...ZKOpt) ClientOption { return func(config *RealisConfig) { config.zkOptions = opts