Skip to content

Commit

Permalink
cleaned up client examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ebauman committed May 19, 2022
1 parent ad21f3a commit 20d9335
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/client-async/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func main() {
logrus.Infof("calling license client async")

notify := make(chan bool, 1)
licenseClient.LicenseAsync("stigatron.compliance.cattle.io", "nodes", 5, notify, "")
licenseClient.LicenseAsync("my.app.domain", "nodes", 5, notify, "")

go func() {
licensed := <-notify
Expand Down
2 changes: 1 addition & 1 deletion example/client-blocking/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func main() {

logrus.Infof("calling license client async")

result := licenseClient.License("stigatron.compliance.cattle.io", "sdfsdfsdf", 5, "")
result := licenseClient.License("my.app.domain", "nodes", 5, "")
if result {
logrus.Info("success! licensed")
} else {
Expand Down
2 changes: 1 addition & 1 deletion example/client-standalone/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func main() {
logrus.Infof("starting standalone licensing client")
logrus.Infof("this client will search for a license secret and become either licensed or not (or error)")

licensed, err := client.Standalone("", "stigatron.compliance.cattle.io", "nodes", 5)
licensed, err := client.Standalone("", "my.app.domain", "nodes", 5)

if err != nil {
logrus.Fatal(err)
Expand Down

0 comments on commit 20d9335

Please sign in to comment.