mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
Merge pull request #185 from pengux/patch-1
Fix typo in documentation for example of connecting to NATS streaming
This commit is contained in:
commit
305049e401
@ -17,7 +17,7 @@ sc, err := stan.Connect(clusterID, clientID)
|
|||||||
If the server runs on port `1234`:
|
If the server runs on port `1234`:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
sc, err := stan.Connect(clusterID, clientID, stan.NatsURL(“nats://localhost:1234))
|
sc, err := stan.Connect(clusterID, clientID, stan.NatsURL("nats://localhost:1234"))
|
||||||
```
|
```
|
||||||
|
|
||||||
Sometimes you may want to provide NATS settings that aren't available in the streaming libraries connect method. Or, you may want to reuse a NATS connection instead of creating a new one. In this case the libraries generally provide a way to connect to streaming with an existing NATS connection:
|
Sometimes you may want to provide NATS settings that aren't available in the streaming libraries connect method. Or, you may want to reuse a NATS connection instead of creating a new one. In this case the libraries generally provide a way to connect to streaming with an existing NATS connection:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user