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

fix: only publish and wait till eos if unpublished #132

Merged
merged 5 commits into from
Dec 20, 2024
Merged

Conversation

im-adithya
Copy link
Member

When subscription is stopped after the request event publish go routine starts (which may or may not have published it, there is high chance that some are published and then the subscription got stopped...

And once we reconnect we wait till EOS, so the response event is lost by then, I think we should only wait for EOS if the request event is not yet published, so if reconnection happens and the event is already published we do not wait for EOS and go through the stored ones to find.

@bumi
Copy link
Contributor

bumi commented Dec 19, 2024

I am wondering if we should not do the EOS at all and check manually the event age.
we could manually check the age, if it's too old we drop it. otherwise we also have constraints to prevent duplicate events.

but as far as I understand the PR it makes sense.

@im-adithya im-adithya merged commit 7e89304 into main Dec 20, 2024
1 check passed
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