Skip to content

Do not wait for reader when sending subscription items#2163

Merged
svyatonik merged 1 commit intorevive-new-clientfrom
fix-subscription-item-send-when-reader-is-busy
May 29, 2023
Merged

Do not wait for reader when sending subscription items#2163
svyatonik merged 1 commit intorevive-new-clientfrom
fix-subscription-item-send-when-reader-is-busy

Conversation

@svyatonik
Copy link
Copy Markdown
Contributor

Found this during code review. When sending subscription items to readers, we shall not wait block - if reader is not reading items (and the channel is full), we shall just drop the reader. It doesn't causes any issues now, but still this is a code bug.

@svyatonik svyatonik added A-bug Something isn't working P-Relay labels May 29, 2023
@svyatonik svyatonik merged commit 4824f18 into revive-new-client May 29, 2023
@svyatonik svyatonik deleted the fix-subscription-item-send-when-reader-is-busy branch May 29, 2023 09:12
svyatonik added a commit that referenced this pull request May 30, 2023
* Revert "Revert new client (#2153)"

This reverts commit 17cf7b5.

* add comment re cache to CachingClient (#2162)

* do not wait for reader when sending items (#2163)

* Use unsync cache + async-aware sync primitives (#2164)

* use unsync cache + async-aware sync primitives

* clippy

* trigger CI

* Revert "trigger CI"

This reverts commit b5c1405.
bkontur pushed a commit that referenced this pull request May 7, 2024
* Revert "Revert new client (#2153)"

This reverts commit 17cf7b5.

* add comment re cache to CachingClient (#2162)

* do not wait for reader when sending items (#2163)

* Use unsync cache + async-aware sync primitives (#2164)

* use unsync cache + async-aware sync primitives

* clippy

* trigger CI

* Revert "trigger CI"

This reverts commit b5c1405.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-bug Something isn't working P-Relay

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants