Skip to content

Commit

Permalink
build: update github.com/moov-io/base to v0.46.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Aug 21, 2023
1 parent e9f4e78 commit 57af175
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
7 changes: 6 additions & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,12 @@ func main() {
}

// Admin server (metrics and debugging)
adminServer := admin.NewServer(*adminAddr)
adminServer, err := admin.New(admin.Opts{
Addr: *adminAddr,
})
if err != nil {
errs <- logger.Fatal().LogErrorf("problem running admin server: %v", err).Err()
}
adminServer.AddVersionHandler(ach.Version) // Setup 'GET /version'
go func() {
logger.Logf("admin listening on %s", adminServer.BindAddr())
Expand Down
10 changes: 8 additions & 2 deletions cmd/webui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ func main() {
}()

// Start Admin server (with Prometheus metrics)
adminServer := admin.NewServer(*adminAddr)
adminServer, err := admin.New(admin.Opts{
Addr: *adminAddr,
})
if err != nil {
errs <- fmt.Errorf("problem running admin server: %v", err)
os.Exit(1)
}
adminServer.AddVersionHandler(ach.Version) // Setup 'GET /version'
go func() {
log.Printf("listening on %s", adminServer.BindAddr())
Expand All @@ -64,7 +70,7 @@ func main() {
// Register our assets route
assetsPath := strx.Or(os.Getenv("ASSETS_PATH"), filepath.Join("cmd", "webui", "assets"))
log.Printf("serving assets from %s", assetsPath)
err := addAssetsPath(router, assetsPath)
err = addAssetsPath(router, assetsPath)
if err != nil {
log.Print(err)
errs <- err
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/go-kit/log v0.2.1
github.com/gorilla/mux v1.8.0
github.com/juju/ansiterm v1.0.0
github.com/moov-io/base v0.45.1
github.com/moov-io/base v0.46.0
github.com/moov-io/iso4217 v0.3.0
github.com/prometheus/client_golang v1.16.0
github.com/stretchr/testify v1.8.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APP
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
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/moov-io/iso4217 v0.3.0 h1:xAxeJEn7QIpEy971eElEGiaLNdj81UwOcCcvE6j2ZAo=
github.com/moov-io/iso4217 v0.3.0/go.mod h1:/pF1mBInDSJtwyWkLNr8EMdIn1zIl2cyjaVi4Xhpd44=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
Expand Down

0 comments on commit 57af175

Please sign in to comment.