From 59cf6ccc410740d15071a3d7b4a98f1a00e281ee Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 3 Feb 2022 10:03:46 +0100 Subject: [PATCH] Rename TLS.Tls to TLS.Enable Enable is more self-documenting. --- pkg/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 78788b4a..24876137 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -83,7 +83,7 @@ func ParseFlags() (*Flags, error) { // TLS provides TLS configuration options for Redis and Database. type TLS struct { - Tls bool `yaml:"tls"` + Enable bool `yaml:"tls"` Cert string `yaml:"cert"` Key string `yaml:"key"` Ca string `yaml:"ca"` @@ -92,7 +92,7 @@ type TLS struct { // MakeConfig assembles a tls.Config from t and address. func (t *TLS) MakeConfig(address string) (*tls.Config, error) { - if !t.Tls { + if !t.Enable { return nil, nil }