From 082876c600e5ad6349108e5a2cf546049efdccc8 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 18 Aug 2014 17:17:33 -0700 Subject: [PATCH] gce: don't make http client twice. doesn't really matter, but. Change-Id: I21495be1780e74464c7016979174ba722400ef1a --- misc/gce/create.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/gce/create.go b/misc/gce/create.go index 80d929e45..260c94336 100644 --- a/misc/gce/create.go +++ b/misc/gce/create.go @@ -142,8 +142,9 @@ coreos: } tr.Token = token - computeService, _ := compute.New(&http.Client{Transport: tr}) - storageService, _ := storage.New(&http.Client{Transport: tr}) + oauthClient := &http.Client{Transport: tr} + computeService, _ := compute.New(oauthClient) + storageService, _ := storage.New(oauthClient) blobBucket := *proj + "-camlistore-blobs" configBucket := *proj + "-camlistore-config"