From a0bffe39fcc885223bec44b60ea7b378a0c7148a Mon Sep 17 00:00:00 2001 From: James Elliott Date: Mon, 28 Mar 2022 13:06:31 +1100 Subject: [PATCH] fix(configuration): expvars and pprof mapped incorrectly (#3068) This fixes the configuration mapping of the server enable_pprof and enable_expvars values. --- internal/configuration/schema/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/configuration/schema/server.go b/internal/configuration/schema/server.go index e1d6f850d..528df6e54 100644 --- a/internal/configuration/schema/server.go +++ b/internal/configuration/schema/server.go @@ -8,8 +8,8 @@ type ServerConfiguration struct { AssetPath string `koanf:"asset_path"` ReadBufferSize int `koanf:"read_buffer_size"` WriteBufferSize int `koanf:"write_buffer_size"` - EnablePprof bool `koanf:"enable_endpoint_pprof"` - EnableExpvars bool `koanf:"enable_endpoint_expvars"` + EnablePprof bool `koanf:"enable_pprof"` + EnableExpvars bool `koanf:"enable_expvars"` DisableHealthcheck bool `koanf:"disable_healthcheck"` TLS ServerTLSConfiguration `koanf:"tls"`