Skip to content

Commit

Permalink
fix: oauth2.NoContext is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
marekaf committed Feb 20, 2021
1 parent ecf91c0 commit 6bae16e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/worker/auth.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package worker

import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
Expand Down Expand Up @@ -45,7 +46,7 @@ func serviceAccount(credentialFile string) (*oauth2.Token, error) {
},
TokenURL: google.JWTTokenURL,
}
token, err := config.TokenSource(oauth2.NoContext).Token()
token, err := config.TokenSource(context.TODO()).Token()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 6bae16e

Please sign in to comment.