X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6e1c29f2530ff36892ebe64a81e3d962766763de..0654fa160f872fe20ea4ada42a655f9d154c0833:/services/arv-git-httpd/auth_handler.go diff --git a/services/arv-git-httpd/auth_handler.go b/services/arv-git-httpd/auth_handler.go index 31865011b7..9f92cd1b72 100644 --- a/services/arv-git-httpd/auth_handler.go +++ b/services/arv-git-httpd/auth_handler.go @@ -20,8 +20,12 @@ type authHandler struct { } func (h *authHandler) setup() { - os.Setenv("ARVADOS_API_HOST", theConfig.Client.APIHost) - h.clientPool = arvadosclient.MakeClientPool() + ac, err := arvadosclient.New(&theConfig.Client) + if err != nil { + log.Fatal(err) + } + h.clientPool = &arvadosclient.ClientPool{Prototype: ac} + log.Printf("%+v", h.clientPool.Prototype) } func (h *authHandler) ServeHTTP(wOrig http.ResponseWriter, r *http.Request) {