Skip to content

Commit

Permalink
append metadata to outgoing context
Browse files Browse the repository at this point in the history
  • Loading branch information
andyroyle committed Nov 22, 2018
1 parent 3dcc95f commit 5807777
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxy/grpc_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func GetGRPCDirector(cfg *config.Config, tlscfg *tls.Config) func(ctx context.Co
}

newCtx := context.Background()
newCtx = metadata.NewOutgoingContext(newCtx, md)
conn, err := grpc.DialContext(newCtx, target.URL.Host, opts...)

return newCtx, conn, err
Expand Down

0 comments on commit 5807777

Please sign in to comment.