From a1a6b308883adaaacb04c0242a489bd1a68129b2 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Mon, 20 May 2019 15:45:19 +0200 Subject: [PATCH 1/2] fixed small errors --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 69ea0fe22..69765ca62 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ The simplest form is to use the helper method UserCredentials(credsFilepath). nc, err := nats.Connect(url, UserCredentials("user.creds")) ``` -The helper methos creates two callback handlers to present the user JWT and sign the nonce challenge from the server. +The helper methods creates two callback handlers to present the user JWT and sign the nonce challenge from the server. The core client library never has direct access to your private key and simply performs the callback for signing the server challenge. The helper will load and wipe and erase memory it uses for each connect or reconnect. @@ -339,9 +339,9 @@ nc, err = nats.Connect("nats://localhost:4222", nats.Token("S3cretT0ken")) // Note that if credentials are specified in the initial URLs, they take -// precedence on the credentials specfied through the options. +// precedence on the credentials specified through the options. // For instance, in the connect call below, the client library will use -// the user "my" and password "pwd" to connect to locahost:4222, however, +// the user "my" and password "pwd" to connect to localhost:4222, however, // it will use username "foo" and password "bar" when (re)connecting to // a different server URL that it got as part of the auto-discovery. nc, err = nats.Connect("nats://my:pwd@localhost:4222", nats.UserInfo("foo", "bar")) From 6cc193574abf53212d8ee8ddc01953af7a251b62 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Mon, 20 May 2019 15:46:50 +0200 Subject: [PATCH 2/2] Update main.go --- examples/nats-bench/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/nats-bench/main.go b/examples/nats-bench/main.go index be1583dfe..d4ac1b000 100644 --- a/examples/nats-bench/main.go +++ b/examples/nats-bench/main.go @@ -82,7 +82,7 @@ func main() { opts = append(opts, nats.UserCredentials(*userCreds)) } - // Use TLS specfied + // Use TLS specified if *tls { opts = append(opts, nats.Secure(nil)) }