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

@ -132,6 +132,9 @@ func newClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, meth
if cc.dopts.cp != nil {
callHdr.SendCompress = cc.dopts.cp.Type()
}
if c.creds != nil {
callHdr.Creds = c.creds
}
var trInfo traceInfo
if EnableTracing {
trInfo.tr = trace.New("grpc.Sent."+methodFamily(method), method)