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 {
18
18
) error
19
19
}
20
20
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.
24
24
func NewPublisher (conf config.QueueConfig ) (Publisher , error ) {
25
25
return rabbitmq .NewPublisher (
26
26
conf .Url ,
You can’t perform that action at this time.
0 commit comments