DE-552 changed metrics port and removed unecessary magic bytes in payload

This commit is contained in:
Nitin
2022-06-22 19:26:24 +05:30
parent d7feede222
commit c19ab662ec
3 changed files with 33 additions and 10 deletions

View File

@@ -85,12 +85,12 @@ func ClickstreamJsonEventHandler(request RequestObject, topic string) {
recordValue := []byte{}
// add [magicByte]
recordValue = append(recordValue, byte(0))
// recordValue = append(recordValue, byte(0))
// add schemaID]
schemaIDBytes := make([]byte, 4)
binary.BigEndian.PutUint32(schemaIDBytes, uint32(producer_module.SchemaVersionMap[topic]))
recordValue = append(recordValue, schemaIDBytes...)
// // add schemaID]
// schemaIDBytes := make([]byte, 4)
// binary.BigEndian.PutUint32(schemaIDBytes, uint32(producer_module.SchemaVersionMap[topic]))
// recordValue = append(recordValue, schemaIDBytes...)
// Now write the bytes from the actual message...
recordValue = append(recordValue, messageBytes...)