mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
Update queues.md
typo fix
This commit is contained in:
parent
28af7bf405
commit
e0479bc72e
@ -22,7 +22,7 @@ wg := sync.WaitGroup{}
|
|||||||
wg.Add(10)
|
wg.Add(10)
|
||||||
|
|
||||||
// Create a queue subscription on "updates" with queue name "workers"
|
// Create a queue subscription on "updates" with queue name "workers"
|
||||||
if _, err := nc.QueueSubscribe("updates", "worker", func(m *nats.Msg) {
|
if _, err := nc.QueueSubscribe("updates", "workers", func(m *nats.Msg) {
|
||||||
wg.Done()
|
wg.Done()
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
@ -139,7 +139,7 @@ The full wildcard can also be used, for example the following would prevent plai
|
|||||||
allow = ["bar >"]
|
allow = ["bar >"]
|
||||||
```
|
```
|
||||||
|
|
||||||
Permissions for Queue Subscriptions can be combined with plain subscriptions as well though, for example you could allow plain subscriptions on `foo` but constrain the queues to which a client can join, as well a preventing any service from using a queue subscription with the name `*.prod`:
|
Permissions for Queue Subscriptions can be combined with plain subscriptions as well though, for example you could allow plain subscriptions on `foo` but constrain the queues to which a client can join, as well as preventing any service from using a queue subscription with the name `*.prod`:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
users = [
|
users = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user