Skip to content

Commit

Permalink
Merge pull request prometheus#2049 from prometheus/ctxfn-error
Browse files Browse the repository at this point in the history
Update common/route vendoring for contextFn errors
  • Loading branch information
grobie authored Oct 3, 2016
2 parents c0889fd + 4f79072 commit f07e676
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
14 changes: 10 additions & 4 deletions vendor/github.com/prometheus/common/route/route.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@
{
"checksumSHA1": "CKVJRc1NREmfoAWQLHxqWQlvxo0=",
"path": "github.com/prometheus/common/route",
"revision": "ee21c31a8cbad2a29cce94a8c53855e1dab92bf7",
"revisionTime": "2016-09-21T02:27:24+02:00"
"revision": "a85e6c850a142b95b63f9dd0ffd9645e5e437da7",
"revisionTime": "2016-10-02T22:56:21+02:00"
},
{
"checksumSHA1": "91KYK0SpvkaMJJA2+BcxbVnyRO0=",
Expand Down
4 changes: 2 additions & 2 deletions web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ type Options struct {

// New initializes a new web Handler.
func New(o *Options) *Handler {
router := route.New(func(r *http.Request) context.Context {
return o.Context
router := route.New(func(r *http.Request) (context.Context, error) {
return o.Context, nil
})

h := &Handler{
Expand Down

0 comments on commit f07e676

Please sign in to comment.