fix getListener comment

This commit is contained in:
Matthew Jaffee 2018-04-23 15:15:02 -05:00
parent 9f1720f01d
commit 1e05a6d627
No known key found for this signature in database
GPG key ID: 51C676AF9FFCDB87

View file

@ -356,7 +356,7 @@ func NewStatsClient(name string, host string) (pilosa.StatsClient, error) {
}
}
// OpenListener opens a listener for the Server.
// getListener gets a net.Listener based on the config.
func getListener(uri pilosa.URI, tlsconf *tls.Config) (ln net.Listener, err error) {
// If bind URI has the https scheme, enable TLS
if uri.Scheme() == "https" && tlsconf != nil {