Skip to content

Commit

Permalink
streamdirector context should inherit from passed in context
Browse files Browse the repository at this point in the history
  • Loading branch information
andyroyle committed Nov 26, 2018
1 parent 4d18669 commit 8705058
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions proxy/grpc_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ func GetGRPCDirector(tlscfg *tls.Config) func(ctx context.Context, fullMethodNam
opts = append(opts, grpc.WithInsecure())
}

newCtx := context.Background()
newCtx = metadata.NewOutgoingContext(newCtx, md)

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

return newCtx, conn, err
Expand Down

0 comments on commit 8705058

Please sign in to comment.