mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
Fix typo in documentation for example of connecting to NATS streaming
This commit is contained in:
parent
758d0566f4
commit
6da0c78178
@ -17,7 +17,7 @@ sc, err := stan.Connect(clusterID, clientID)
|
||||
If the server runs on port `1234`:
|
||||
|
||||
```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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user