From 78d1ff52c44613502a750dc8ef95b01237c413bf Mon Sep 17 00:00:00 2001 From: "Harrison (Harry) Cramer" <32515581+harrisoncramer@users.noreply.github.com> Date: Tue, 31 Oct 2023 17:58:15 -0400 Subject: [PATCH] Fixing client initialization (#73) --- cmd/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 512ec2f..ecb01db 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -88,12 +88,9 @@ func main() { } -type ClientString string - func withGitlabContext(next http.HandlerFunc, c Client) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - var cl ClientString = "client" - ctx := context.WithValue(context.Background(), cl, c) + ctx := context.WithValue(context.Background(), "client", c) //nolint:all next.ServeHTTP(w, r.WithContext(ctx)) }) }