From 810dcda59b6d7f87b8b1ce41a5007603ece3d02c Mon Sep 17 00:00:00 2001 From: Alistair Judson Date: Thu, 6 Feb 2020 10:46:11 +0000 Subject: [PATCH] Fixed the injection of the status checking round tripper This fixes the injection of the status checking round tripper, as it was not added to the list of checkers. --- httpclient/http.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/httpclient/http.go b/httpclient/http.go index 47f4ec7..861b355 100644 --- a/httpclient/http.go +++ b/httpclient/http.go @@ -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",