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: key-value event not fired with second subs #79

Conversation

giangndm
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Nov 23, 2023

Codecov Report

Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (bafbcc1) 86.04% compared to head (593ea75) 86.21%.

Files Patch % Lines
...ges/services/key_value/src/behavior/sdk/pub_sub.rs 70.58% 10 Missing ⚠️
packages/services/key_value/src/behavior/sdk.rs 85.36% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #79      +/-   ##
==========================================
+ Coverage   86.04%   86.21%   +0.17%     
==========================================
  Files         106      106              
  Lines       12192    12265      +73     
==========================================
+ Hits        10490    10574      +84     
+ Misses       1702     1691      -11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -9,8 +9,7 @@
use parking_lot::RwLock;

struct SubscribeContainer<T> {
subscribers: HashMap<u64, Sender<T>>,
clear_handler: Box<dyn FnOnce() + Send + Sync>,
subscribers: HashMap<u64, (Sender<T>, Box<dyn FnOnce() + Send + Sync>)>,

Check warning

Code scanning / clippy

very complex type used. Consider factoring parts into type definitions Warning

very complex type used. Consider factoring parts into type definitions
@giangndm giangndm marked this pull request as ready for review November 23, 2023 04:03
@giangndm giangndm merged commit 1d91c96 into 8xFF:master Nov 23, 2023
6 checks passed
@github-actions github-actions bot mentioned this pull request Nov 23, 2023
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.

1 participant