You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/02/18 17:40:33 UTC

[GitHub] [pulsar] flowchartsman commented on a change in pull request #9515: Initial checkin of PublishMessage/Publish

flowchartsman commented on a change in pull request #9515:
URL: https://github.com/apache/pulsar/pull/9515#discussion_r578619471



##########
File path: pulsar-function-go/examples/publishFunc/publishFunc.go
##########
@@ -36,19 +36,13 @@ func PublishFunc(ctx context.Context, in []byte) error {
 
 	publishTopic := "publish-topic"
 	output := append(in, 110)
-
-	producer := fctx.NewOutputMessage(publishTopic)
-	msgID, err := producer.Send(ctx, &pulsar.ProducerMessage{
+	log.Printf("publishing to additional topic %s", publishTopic)

Review comment:
       This is just the example, so it's only there to show that it's doing _something_. I wasn't sure what to put here. Recommendations?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org