Skip to content

Commit

Permalink
docs: fixed small errors
Browse files Browse the repository at this point in the history
  • Loading branch information
0xflotus authored and underfisk committed Dec 21, 2023
1 parent be88a40 commit 1891b32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/rabbitmq/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
- [Selecting channel for handler](#selecting-channel-for-handler)
- [Sending Messages](#sending-messages)
- [Inject the AmqpConnection](#inject-the-amqpconnection)
- [Publising Messages (Fire and Forget)](#publising-messages-fire-and-forget)
- [Publishing Messages (Fire and Forget)](#publishing-messages-fire-and-forget)
- [Requesting Data from an RPC](#requesting-data-from-an-rpc)
- [Type Inference](#type-inference)
- [Interop with other RPC Servers](#interop-with-other-rpc-servers)
Expand Down Expand Up @@ -446,7 +446,7 @@ export class AppController {
}
```

### Publising Messages (Fire and Forget)
### Publishing Messages (Fire and Forget)

If you just want to publish a message onto a RabbitMQ exchange, use the `publish` method of the `AmqpConnection` which has the following signature:

Expand Down Expand Up @@ -557,7 +557,7 @@ The default is `defaultNackErrorHandler` and it just nack the message without re

However, you can do more fancy stuff like inspecting the message properties to decide to requeue or not. Be aware that you should not requeue indefinitely...

Please note that nack will trigger the dead-letter mecanism of RabbitMQ (and so, you can use the deadLetterExchange in the queueOptions in order to send the message somewhere else).
Please note that nack will trigger the dead-letter mechanism of RabbitMQ (and so, you can use the deadLetterExchange in the queueOptions in order to send the message somewhere else).

A complete error handling strategy for RabbitMQ is out of the scope of this library.

Expand Down

0 comments on commit 1891b32

Please sign in to comment.