Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #34 from ripienaar/33
Browse files Browse the repository at this point in the history
(#33) support new NewRequestID() API
  • Loading branch information
ripienaar authored Oct 27, 2018
2 parents 9f8afdf + 5b1032a commit 60f882d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
7 changes: 6 additions & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ func New(fw *choria.Framework, opts ...Option) (*Client, error) {
}

if c.name == "" {
c.name = fmt.Sprintf("%s-%s", c.fw.Certname(), c.fw.NewRequestID())
rid, err := c.fw.NewRequestID()
if err != nil {
return nil, fmt.Errorf("could not generate unique name: %s", err)
}

c.name = fmt.Sprintf("%s-%s", c.fw.Certname(), rid)
}

c.receiverReady = make(chan struct{}, c.receivers)
Expand Down
22 changes: 13 additions & 9 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package: github.com/choria-io/go-client
import:
- package: github.com/choria-io/go-choria
version: ^0.5.0
version: 712b4538dbe96c66d118dca98221fb9ef14e054e
subpackages:
- choria
- srvcache
Expand Down

0 comments on commit 60f882d

Please sign in to comment.