revise Picker API

This commit is contained in:
iamqizhao
2015-09-29 10:24:03 -07:00
parent 2ca13251f7
commit c01ea6e359
4 changed files with 38 additions and 35 deletions

View File

@ -102,7 +102,7 @@ func NewClientStream(ctx context.Context, desc *StreamDesc, cc *ClientConn, meth
err error
)
for {
conn, err = cc.picker.Pick()
conn, err = cc.dopts.picker.Pick()
if err != nil {
return nil, toRPCErr(err)
}