Skip to content

Commit

Permalink
fix bug where metrics could not be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanejohnson committed Apr 11, 2022
1 parent fc9fc21 commit f5ed388
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/homebrew.vim
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/url
DAurl "https://github.com/fabiolb/fabio/archive/v1.5.15.tar.gz"/sha256
DAsha256 "19dcd4d8c6e4fe16e63e4208564d08ed442a0c724661ef4d91e9dbc85a9afbe1":wq
DAurl "https://github.com/fabiolb/fabio/archive/v1.6.0.tar.gz"/sha256
DAsha256 "ca2c5d96cc5ef49f7eb65f669b943b7adc4fec7eb5035f2ed8c68e879a266a7a":wq
2 changes: 2 additions & 0 deletions metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ func Initialize(cfg *config.Metrics) (Provider, error) {
return nil, err
}
p = append(p, pp)
case "":
// metrics are disabled.
default:
return nil, fmt.Errorf("invalid metrics backend %s", x)
}
Expand Down

0 comments on commit f5ed388

Please sign in to comment.