wolfstudy commented on a change in pull request #6031: [Issue 4175]
[pulsar-function-go] Add Go Function heartbeat (and gRPC service) for
production usage
URL: https://github.com/apache/pulsar/pull/6031#discussion_r366943599
##########
File path: pulsar-function-go/pf/context.go
##########
@@ -43,7 +43,15 @@ func (c *FunctionContext) GetInstanceID() int {
}
func (c *FunctionContext) GetInputTopics() []string {
- return c.inputTopics
+ myMap := c.instanceConf.funcDetails.GetSource().InputSpecs
+ inputTopics := make([]string, len(myMap))
+ i := 0
+ for k := range myMap {
+ inputTopics[i] = k
+ i++
+ }
+ return inputTopics
+ //return c.inputTopics
Review comment:
please remove the comments
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services