Skip to content

Commit fd4775c

Browse files
addshorem110
andauthored
Clarify comment for Addhandler and multiple topics (#551)
Co-authored-by: Miłosz Smółka <[email protected]>
1 parent 633132c commit fd4775c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

message/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func (d DuplicateHandlerNameError) Error() string {
265265
//
266266
// publishTopic is a topic to which router will produce messages returned by handlerFunc.
267267
// When handler needs to publish to multiple topics,
268-
// it is recommended to just inject Publisher to Handler or implement middleware
268+
// it is recommended to use AddNoPublisherHandler and inject a Publisher or implement middleware
269269
// which will catch messages and publish to topic based on metadata for example.
270270
//
271271
// If handler is added while router is already running, you need to explicitly call RunHandlers().

0 commit comments

Comments
 (0)