Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
shinfan committed Aug 29, 2018
1 parent b6e3ef8 commit 1192148
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions go/sgauth/internal/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ type GrpcTokenSource struct {
ApiKey string

// Additional metadata attached as headers
QuotaUser string
QuotaUser string
QuotaProject string
IAMAuthToken string
}

// GetRequestMetadata gets the request metadata as a map from a TokenSource.
func (ts GrpcTokenSource) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) {
func (ts GrpcTokenSource) GetRequestMetadata(ctx context.Context, uri ...string) (
map[string]string, error) {
metadata := map[string]string{}
if ts.ApiKey != "" {
metadata[headerApiKey] = ts.ApiKey
Expand Down

0 comments on commit 1192148

Please sign in to comment.