diff --git a/cmd/server/main.go b/cmd/server/main.go index 4cda5bd..63abbc3 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -98,7 +98,13 @@ func main() { } // Start Admin server (with Prometheus metrics) - adminServer := admin.NewServer(*adminAddr) + adminServer, err := admin.New(admin.Opts{ + Addr: *adminAddr, + }) + if err != nil { + logger.LogErrorf("problem creating admin server: %v", err) + os.Exit(1) + } adminServer.AddVersionHandler(fed.Version) // Setup 'GET /version' go func() { logger.Info().Logf(fmt.Sprintf("listening on %s", adminServer.BindAddr())) diff --git a/go.mod b/go.mod index 170567c..4ba523d 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/go-kit/kit v0.12.0 github.com/gorilla/mux v1.8.0 github.com/hashicorp/golang-lru v0.6.0 - github.com/moov-io/base v0.45.1 + github.com/moov-io/base v0.46.0 github.com/prometheus/client_golang v1.16.0 github.com/stretchr/testify v1.8.4 github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 diff --git a/go.sum b/go.sum index 42bb9b7..048bcf2 100644 --- a/go.sum +++ b/go.sum @@ -41,8 +41,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/moov-io/base v0.45.1 h1:1gZuINLBAw+HS78NLcKjSd8cH8fmA2qIHZwgYP+N/WU= -github.com/moov-io/base v0.45.1/go.mod h1:F2hLIojBgQJxRWTFLRTYuta/w+z2BBgDcd5k0BSifGA= +github.com/moov-io/base v0.46.0 h1:4sgFjfD9EELJ+i6cGfPtezoPAAxwE3imLJ64bbHtBwM= +github.com/moov-io/base v0.46.0/go.mod h1:AFoLPJA1uuylLp33g1nGzTnGk8zyqYH7KfBS7flc0P8= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_golang v1.16.0 h1:yk/hx9hDbrGHovbci4BY+pRMfSuuat626eFsHb7tmT8=