Skip to content

Commit

Permalink
Merge pull request #224 from codyl-stripe/codyl/expose_new_requestor
Browse files Browse the repository at this point in the history
Exposes runner.NewRequester publicly
  • Loading branch information
bojand authored Sep 18, 2020
2 parents 2d4e1f4 + 93a2a08 commit d5dca2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion runner/requester.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ type Requester struct {
lock sync.Mutex
}

func newRequester(c *RunConfig) (*Requester, error) {
// NewRequester creates a new requestor from the passed RunConfig
func NewRequester(c *RunConfig) (*Requester, error) {

var err error
var mtd *desc.MethodDescriptor
Expand Down
2 changes: 1 addition & 1 deletion runner/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func Run(call, host string, options ...Option) (*Report, error) {
runtime.GOMAXPROCS(c.cpus)
defer runtime.GOMAXPROCS(oldCPUs)

reqr, err := newRequester(c)
reqr, err := NewRequester(c)

if err != nil {
return nil, err
Expand Down

0 comments on commit d5dca2f

Please sign in to comment.