Skip to content

Commit 4f66ae9

Browse files
committed
Some more monkey-business to get go/appengine creds.
Ideally the default creds are provided in a Env var, that appears to maybe not be happening in the same straightforward manner?
1 parent 42d35c8 commit 4f66ae9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Historical-ROA/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ const (
8585
)
8686

8787
func main() {
88+
ctx := context.Background()
8889
// enable logging
8990
log.SetCallDepth(2)
9091
// set http port
@@ -109,7 +110,7 @@ func main() {
109110
}
110111

111112
// open bigquery connection
112-
client, err = bigquery.NewClient(context.Background(), gcreds.ProjectID)
113+
client, err = bigquery.NewClient(ctx, projectID)
113114
if err != nil {
114115
log.Fatalf("unable to connect to the bigquery DB: %v", err)
115116
}

0 commit comments

Comments
 (0)