about summary refs log tree commit diff stats
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/server/server.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/server/server.go b/internal/server/server.go
index 9038c04..c72368c 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -20,8 +20,6 @@ import (
 	"golang.org/x/net/http2/h2c"
 )
 
-var config *cfg.Config
-
 var (
 	CommitSHA    = "local"
 	ShortSHA     = "local"
@@ -55,7 +53,7 @@ func serverHeaderHandler(wrappedHandler http.Handler) http.Handler {
 
 func New(runtimeConfig *Config) (*Server, error) {
 	var err error
-	config, err = cfg.GetConfig()
+	config, err := cfg.GetConfig()
 	if err != nil {
 		return nil, errors.WithMessage(err, "error parsing configuration file")
 	}