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

refactor: Minor refactoring of get_close_nodes functions. #2539

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Jan 10, 2024

Avoiding passing down the entire DHT struct pointer to the inner functions makes it possible in the future to write unit tests without having to construct a full DHT object.


This change is Reviewable

@iphydf iphydf added this to the v0.2.19 milestone Jan 10, 2024
@iphydf iphydf marked this pull request as ready for review January 10, 2024 12:58
@iphydf iphydf force-pushed the dht-refr branch 4 times, most recently from a0cae71 to 9461c1f Compare January 10, 2024 14:06
Copy link

codecov bot commented Jan 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (091d123) 68.96% compared to head (c66e10f) 68.95%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2539      +/-   ##
==========================================
- Coverage   68.96%   68.95%   -0.02%     
==========================================
  Files          96       96              
  Lines       28023    28027       +4     
==========================================
- Hits        19327    19325       -2     
- Misses       8696     8702       +6     

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

Avoiding passing down the entire DHT struct pointer to the inner
functions makes it possible in the future to write unit tests without
having to construct a full DHT object.
@toktok-releaser toktok-releaser merged commit c66e10f into TokTok:master Jan 10, 2024
54 checks passed
@iphydf iphydf deleted the dht-refr branch January 10, 2024 20:38
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.

None yet

3 participants