Skip to content

Commit

Permalink
Merge pull request #8 from blackbx/fix-status-checking-tripper
Browse files Browse the repository at this point in the history
Fixed the injection of the status checking round tripper
  • Loading branch information
alistairjudson committed Feb 6, 2020
2 parents 0bbaf5d + 810dcda commit d3de26e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions httpclient/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ import (
var Service = dependency.Service{
Dependencies: fx.Provide(
fx.Annotated{
Group: "trippers",
Target: NewStatusCheckingTripper,
Group: "trippers",
Target: func() Tripper {
return func(tripper http.RoundTripper) http.RoundTripper {
return NewStatusCheckingTripper(tripper)
}
},
},
),
Name: "httpclient",
Expand Down

0 comments on commit d3de26e

Please sign in to comment.