Skip to content

Commit

Permalink
Merge pull request #646 from uber/set-shardkey-and-routingdelegate-in…
Browse files Browse the repository at this point in the history
…-calloptions

Set shardkey and routingdelegate in calloptions
  • Loading branch information
smb158 committed Sep 23, 2019
2 parents 20e95dc + 21397c9 commit 0ccf800
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions runtime/tchannel_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,10 @@ func (c *TChannelClient) call(
}

call.call, cerr = sc.BeginCall(ctx, call.serviceMethod, &tchannel.CallOptions{
Format: tchannel.Thrift,
RequestState: rs,
Format: tchannel.Thrift,
ShardKey: GetShardKeyFromCtx(ctx),
RequestState: rs,
RoutingDelegate: GetRoutingDelegateFromCtx(ctx),
})
if cerr != nil {
return errors.Wrapf(
Expand Down

0 comments on commit 0ccf800

Please sign in to comment.