adding configs

This commit is contained in:
“nishant-sharma”
2021-03-30 16:32:05 +05:30
parent bbdde6ae68
commit 0fdb4a8489
4 changed files with 11 additions and 6 deletions

View File

@@ -19,10 +19,10 @@ type RequestObject struct {
Header http.Header
}
func ProcessRequestChannel() {
func ProcessRequestChannel(topic string) {
for {
request := <- RequestChannel
ClickstreamProtobufEventHandler(*request, "testgo")
ClickstreamProtobufEventHandler(*request, topic)
}
}
@@ -54,7 +54,7 @@ func ClickstreamProtobufEventHandler(request RequestObject, topic string) {
}
if message != nil {
log.Printf("WRITTEN TO KAFKA")
log.Printf("WRITING TO KAFKA")
}
producer_module.WriteMessageToKafkaAsync(message)