Skip to content

Commit ec1935c

Browse files
committed
docs: update readme
1 parent a214d86 commit ec1935c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ RabbitMQ Library to using Event Driven Application based on Publish/Subscribe bu
5656
// create instance of the subscriber
5757
var Subscriber = subscriber.NewSubscriber("SUBSCRIBER_NAME", nil, handler)
5858

59-
// create instance of the subscriber
60-
var Subscriber = subscriber.NewSubscriber("SUBSCRIBER_NAME", nil, handler)
59+
// register subscriber to amqp
60+
client.AddSubscriber(Subscriber)
6161

6262
```
6363

0 commit comments

Comments
 (0)