Skip to content

Commit

Permalink
chore: fix typo (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
bxcodec authored Jun 9, 2024
1 parent 98ce018 commit 7bcb7a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ func main() {
publisher.WithPublisherID("publisher_id"),
publisher.WithMiddlewares(
middleware.HelloWorldMiddlewareExecuteBeforePublisher(),
middleware.HelloWorldMiddlewareExecuteAfterPublisher()),
middleware.HelloWorldMiddlewareExecuteAfterPublisher(),
),
)

publisherChannel, err := rmqConn.Channel()
Expand All @@ -88,7 +89,8 @@ func main() {
consumerChannel,
consumer.WithMiddlewares(
middleware.HelloWorldMiddlewareExecuteAfterInboundMessageHandler(),
middleware.HelloWorldMiddlewareExecuteBeforeInboundMessageHandler()),
middleware.HelloWorldMiddlewareExecuteBeforeInboundMessageHandler(),
),
consumer.WithQueueName("consumer_queue"),
consumer.WithConsumerID("consumer_id"),
consumer.WithBatchMessageSize(1),
Expand Down Expand Up @@ -138,7 +140,6 @@ func handler() goqueue.InboundMessageHandlerFunc {
return m.Ack(ctx)
}
}

```

## Contribution
Expand Down
6 changes: 4 additions & 2 deletions examples/rabbitmq/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ func main() {
publisher.WithPublisherID("publisher_id"),
publisher.WithMiddlewares(
middleware.HelloWorldMiddlewareExecuteBeforePublisher(),
middleware.HelloWorldMiddlewareExecuteAfterPublisher()),
middleware.HelloWorldMiddlewareExecuteAfterPublisher(),
),
)

publisherChannel, err := rmqConn.Channel()
Expand All @@ -61,7 +62,8 @@ func main() {
consumerChannel,
consumer.WithMiddlewares(
middleware.HelloWorldMiddlewareExecuteAfterInboundMessageHandler(),
middleware.HelloWorldMiddlewareExecuteBeforeInboundMessageHandler()),
middleware.HelloWorldMiddlewareExecuteBeforeInboundMessageHandler(),
),
consumer.WithQueueName("consumer_queue"),
consumer.WithConsumerID("consumer_id"),
consumer.WithBatchMessageSize(1),
Expand Down

0 comments on commit 7bcb7a8

Please sign in to comment.