Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

chore: use a pushable channel as a buffer between nats and rpc #151

Merged
merged 6 commits into from
Aug 25, 2022

Conversation

hugoArregui
Copy link

No description provided.

async function run() {
for await (const message of subscription.generator) {
if (maxBufferSize && ch.bufferSize() > maxBufferSize) {
continue
Copy link
Contributor

Choose a reason for hiding this comment

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

should we log something here? Are messages that are going to be ignored?

@hugoArregui hugoArregui merged commit f6566ed into main Aug 25, 2022
@hugoArregui hugoArregui deleted the chore/pushable-channel branch August 25, 2022 15:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants