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

Minor code clean up #399

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Minor code clean up #399

merged 1 commit into from
Apr 3, 2024

Conversation

Tang8330
Copy link
Contributor

@Tang8330 Tang8330 commented Apr 3, 2024

Changes

We previously made ProcessMessage(...) public for Reader to import this function and directly call it from its codebase. However, this is at the wrong level. Reader would need to add additional overhead of marshaling the raw message into a Kafka message just to unmarshall it back out.

As such, I've changed the function back to private and made it slightly more idiomatic towards Go by having receiver methods.

@Tang8330 Tang8330 marked this pull request as ready for review April 3, 2024 16:39
@Tang8330 Tang8330 merged commit b52fc86 into master Apr 3, 2024
1 check passed
@Tang8330 Tang8330 deleted the code-cleanup branch April 3, 2024 19:18
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.

2 participants