File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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.
2424func NewPublisher (conf config.QueueConfig ) (Publisher , error ) {
2525 return rabbitmq .NewPublisher (
2626 conf .Url ,
You can’t perform that action at this time.
0 commit comments