Skip to content

Commit be9fddf

Browse files
committed
chore: Fix description typos.
1 parent e807120 commit be9fddf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/queue/publisher/publisher.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ type Publisher interface {
1818
) error
1919
}
2020

21-
//NewPublisher create publisher and connects to rabbit under the hood
22-
//This method appears to be not testable cause it combines 2 responsibilities: create a class and connect to a queue.
23-
//I think we may rely on NewPublisher tested in the library.
21+
//NewPublisher creates a publisher and connects to the rabbit under the hood.
22+
//This method appears to be not testable cause it combines 2 responsibilities: create an instance and connect to a queue.
23+
//I think we may rely on NewPublisher has been already tested in the library.
2424
func NewPublisher(conf config.QueueConfig) (Publisher, error) {
2525
return rabbitmq.NewPublisher(
2626
conf.Url,

0 commit comments

Comments
 (0)