Skip to content

Commit

Permalink
v2/contrib/hashicorp/vault: revert accidental change in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
darccio committed Nov 24, 2023
1 parent 65220c2 commit 8a55266
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions v2/contrib/hashicorp/vault/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
func ExampleNewHTTPClient() {
c, err := api.NewClient(&api.Config{
HttpClient: vaulttrace.NewHTTPClient(),
Address: "http://vaulttrace.mydomain.com:8200",
Address: "http://vault.mydomain.com:8200",
})
if err != nil {
log.Fatalf("Failed to create Vault client: %s\n", err)
Expand All @@ -34,7 +34,7 @@ func ExampleNewHTTPClient_withOptions() {
vaulttrace.WithServiceName("my.vault"),
vaulttrace.WithAnalytics(true),
),
Address: "http://vaulttrace.mydomain.com:8200",
Address: "http://vault.mydomain.com:8200",
})
if err != nil {
log.Fatalf("Failed to create Vault client: %s\n", err)
Expand All @@ -57,7 +57,7 @@ func ExampleWrapHTTPClient() {
}
client, err := api.NewClient(&api.Config{
HttpClient: vaulttrace.WrapHTTPClient(c),
Address: "http://vaulttrace.mydomain.com:8200",
Address: "http://vault.mydomain.com:8200",
})
if err != nil {
log.Fatalf("Failed to create Vault client: %s\n", err)
Expand All @@ -84,7 +84,7 @@ func ExampleWrapHTTPClient_withOptions() {
vaulttrace.WithServiceName("my.vault"),
vaulttrace.WithAnalytics(true),
),
Address: "http://vaulttrace.mydomain.com:8200",
Address: "http://vault.mydomain.com:8200",
})
if err != nil {
log.Fatalf("Failed to create Vault client: %s\n", err)
Expand Down

0 comments on commit 8a55266

Please sign in to comment.