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

Sync blocking enable/disable over redis (#377) #403

Merged
merged 30 commits into from
Jan 19, 2022

Conversation

kwitsch
Copy link
Collaborator

@kwitsch kwitsch commented Jan 10, 2022

still needs some unittests

@codecov
Copy link

codecov bot commented Jan 10, 2022

Codecov Report

Merging #403 (4db05f0) into development (04b21e4) will increase coverage by 0.12%.
The diff coverage is 91.66%.

❗ Current head 4db05f0 differs from pull request most recent head ea9f9d7. Consider uploading reports for the commit ea9f9d7 to get more accurate results
Impacted file tree graph

@@               Coverage Diff               @@
##           development     #403      +/-   ##
===============================================
+ Coverage        94.10%   94.23%   +0.12%     
===============================================
  Files               32       32              
  Lines             2546     2600      +54     
===============================================
+ Hits              2396     2450      +54     
- Misses             112      113       +1     
+ Partials            38       37       -1     
Impacted Files Coverage Δ
redis/redis.go 67.97% <84.61%> (+6.25%) ⬆️
resolver/blocking_resolver.go 100.00% <100.00%> (ø)
resolver/caching_resolver.go 98.42% <100.00%> (ø)
server/server.go 89.22% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04b21e4...ea9f9d7. Read the comment docs.

@kwitsch
Copy link
Collaborator Author

kwitsch commented Jan 15, 2022

@0xERR0R sorry it seem i still don't really get unit test. 😞
According to redis_test.go line 105-161 the lines codecov marks as untested should be covered.

@0xERR0R
Copy link
Owner

0xERR0R commented Jan 17, 2022

Thank you for your work! I'll try to review and test this PR this week. I see, you are using the same pub/sub channel as for the cache synchronization (by using coded message type as message field). What was the reason to reuse this channel and not to create a separate one only for enable/disable state (2 separate channels for 2 different messages). I guess you wanted to reuse the logic with client uuid?

@0xERR0R 0xERR0R linked an issue Jan 17, 2022 that may be closed by this pull request
@0xERR0R 0xERR0R added the 🔨 enhancement New feature or request label Jan 17, 2022
@0xERR0R 0xERR0R self-assigned this Jan 17, 2022
@0xERR0R 0xERR0R added this to the 0.18 milestone Jan 17, 2022
@kwitsch
Copy link
Collaborator Author

kwitsch commented Jan 18, 2022

Thank you for your work! I'll try to review and test this PR this week. I see, you are using the same pub/sub channel as for the cache synchronization (by using coded message type as message field). What was the reason to reuse this channel and not to create a separate one only for enable/disable state (2 separate channels for 2 different messages). I guess you wanted to reuse the logic with client uuid?

Yes i figured utilizing different channels would duplicate functionality on the client side.
Thought that ~3 byte in communication would cost less time than expensive logic on the client side.

@0xERR0R 0xERR0R merged commit ee451f8 into 0xERR0R:development Jan 19, 2022
@kwitsch kwitsch deleted the #377 branch January 20, 2022 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sync blocking enable/disable over redis
2 participants