Skip to content

Commit

Permalink
add protoset binary field
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanang committed Jul 16, 2021
1 parent 5acbf07 commit e1049ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions runner/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type RunConfig struct {
proto string
importPaths []string
protoset string
protosetBinary []byte
enableCompression bool

// security settings
Expand Down
2 changes: 2 additions & 0 deletions runner/requester.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ func NewRequester(c *RunConfig) (*Requester, error) {
mtd, err = protodesc.GetMethodDescFromProto(c.call, c.proto, c.importPaths)
} else if c.protoset != "" {
mtd, err = protodesc.GetMethodDescFromProtoSet(c.call, c.protoset)
} else if c.protosetBinary != nil {
mtd, err = protodesc.GetMethodDescFromProtoSetBinary(c.call, c.protosetBinary)
} else {
// use reflection to get method descriptor
var cc *grpc.ClientConn
Expand Down

0 comments on commit e1049ef

Please sign in to comment.