brave-intl / challenge-bypass-server

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

Make Error Result Channel Have a Buffer of 1 #703

Closed Sneagan closed 1 month ago

Sneagan commented 2 months ago

As configured, the error channel will exist until a recipient reads the channel. Instead, allow exactly one result to be buffered. This will allow cleanup of resources related to processing in the event that the reader of the error channel is delayed in receiving.

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