Adding dial options for PerRPCCredentials (#1225)

* Adding dial options for PerRPCCredentials

* Added tests for PerRPCCredentials

* Post-review updates

* post-review updates
This commit is contained in:
MakMukhi
2017-05-11 11:07:38 -07:00
committed by GitHub
parent 07bd9434fa
commit 88a73d35c9
6 changed files with 184 additions and 9 deletions

View File

@ -219,6 +219,9 @@ func invoke(ctx context.Context, method string, args, reply interface{}, cc *Cli
if cc.dopts.cp != nil {
callHdr.SendCompress = cc.dopts.cp.Type()
}
if c.creds != nil {
callHdr.Creds = c.creds
}
gopts := BalancerGetOptions{
BlockingWait: !c.failFast,