Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Mar 19, 2024
1 parent 1aabc20 commit f7365df
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ export function createKafkaMessage(
messageOverrides: Partial<Message> = {},
eventProperties: Record<string, any> = {}
): Message {
const message: Message = {
return {
partition: 1,
topic: KAFKA_SESSION_RECORDING_SNAPSHOT_ITEM_EVENTS,
offset: 0,
timestamp: messageOverrides.timestamp ?? Date.now(),
size: 1,
headers: [{ token: token.toString() }],
...messageOverrides,

value: Buffer.from(
Expand All @@ -70,8 +71,6 @@ export function createKafkaMessage(
})
),
}

return message
}

export function createTP(partition: number, topic = KAFKA_SESSION_RECORDING_SNAPSHOT_ITEM_EVENTS) {
Expand Down

0 comments on commit f7365df

Please sign in to comment.