brave-intl / challenge-bypass-server

https://privacypass.github.io
BSD 3-Clause "New" or "Revised" License
5 stars 6 forks source link

Close Error Result Channel if No Topic Matches Message #702

Closed Sneagan closed 1 month ago

Sneagan commented 2 months ago

If we get a message from a topic that we have not configured we will push an error channel into the results channel that will never have a message pushed into it. This will halt processing. We need to close the error channel in addition to logging the message about the bad topic/message mapping.

https://github.com/brave-intl/challenge-bypass-server/blob/17fec6895e373d00b87317650c70bfda128784a9/kafka/main.go#L200