Skip to content

refactor: Minor refactoring of get_close_nodes functions.#2539

Merged
toktok-releaser merged 1 commit into
TokTok:masterfrom
iphydf:dht-refr
Jan 10, 2024
Merged

refactor: Minor refactoring of get_close_nodes functions.#2539
toktok-releaser merged 1 commit into
TokTok:masterfrom
iphydf:dht-refr

Conversation

@iphydf

@iphydf iphydf commented Jan 10, 2024

Copy link
Copy Markdown
Member

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
@codecov

codecov Bot commented Jan 10, 2024

Copy link
Copy Markdown

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
@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

Development

Successfully merging this pull request may close these issues.

3 participants