From 85011fca7d90388e5407e21e4217ddd2cf0c1336 Mon Sep 17 00:00:00 2001 From: CodeLingoBot Date: Wed, 20 Mar 2019 14:59:57 +1300 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingoBot --- loadbalancer/lbutils.go | 2 +- service/health.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/loadbalancer/lbutils.go b/loadbalancer/lbutils.go index ea3e0de..319407e 100644 --- a/loadbalancer/lbutils.go +++ b/loadbalancer/lbutils.go @@ -75,7 +75,7 @@ func createCertPool(backendConfig *config.BackendConfig) (*x509.CertPool, error) return pool, nil } -// NewLoadBalancer instantiates a load balancer based on the named backend configuration. Backend +// NewBackendLoadBalancer instantiates a load balancer based on the named backend configuration. Backend // names are scoped to routes, thus the route is given to ensure the correct backend is returned // if multiple backend definitions with the same name are given. func NewBackendLoadBalancer(backendName string) (*BackendLoadBalancer, error) { diff --git a/service/health.go b/service/health.go index 6985a97..0bd3f1d 100644 --- a/service/health.go +++ b/service/health.go @@ -68,7 +68,7 @@ func (hcc *HealthCheckContext) HealthHandler() http.HandlerFunc { } } -//Return current health status +//GetHealthStatus returns current health status func (hcc *HealthCheckContext) GetHealthStatus() *HealthResponse { hr := &HealthResponse{