Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove defrecord wrappers #164

Merged
merged 1 commit into from
Jul 21, 2020
Merged

remove defrecord wrappers #164

merged 1 commit into from
Jul 21, 2020

Conversation

macalimlim
Copy link
Contributor

No description provided.

If the message is of type map, the function just returns the map as it is. In older versions of Ziggurat (< 3.0) we stored
the messages in deserialized formats in RabbitMQ and those messages can be processed by this function. So we have this logic here."
[message proto-class topic-entity-name]
(reduce
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, why do we do a reduce here? Won't the message have this structure:-
{:topic-key1 "some_byte_array" :topic-key2 "some_byte_array"}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes :) it will have that structure. reduce is in case we have to do multiple joins (two or more), for now its only one...

@macalimlim macalimlim merged commit 7fa125c into master Jul 21, 2020
@mjayprateek mjayprateek deleted the remove-wrappers branch February 7, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants