Skip to content

Enable cache eviction & simplify logic - #3473

Merged
mdomasevicius merged 1 commit into
masterfrom
features/proposal-caching
Jun 15, 2021
Merged

Enable cache eviction & simplify logic#3473
mdomasevicius merged 1 commit into
masterfrom
features/proposal-caching

Conversation

@mdomasevicius

Copy link
Copy Markdown
Collaborator

No description provided.

if err != nil {
return nil, err
}
m.addToCache(apiProposals)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In reality this is just a API call throttling. In the spirit of previous implementation I leave it multi-thread non-safe :)

@mdomasevicius
mdomasevicius force-pushed the features/proposal-caching branch from 2372ada to 5dd451b Compare June 15, 2021 06:07
Signed-off-by: Mantas Domaševičius <mantas@mysterium.network>
@mdomasevicius
mdomasevicius force-pushed the features/proposal-caching branch from 5dd451b to 41285ba Compare June 15, 2021 06:25
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #3473 (5dd451b) into master (efc5d1e) will increase coverage by 0.03%.
The diff coverage is 58.82%.

❗ Current head 5dd451b differs from pull request most recent head 41285ba. Consider uploading reports for the commit 41285ba to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3473      +/-   ##
==========================================
+ Coverage   43.27%   43.31%   +0.03%     
==========================================
  Files         313      313              
  Lines       13818    13822       +4     
==========================================
+ Hits         5980     5987       +7     
- Misses       7112     7115       +3     
+ Partials      726      720       -6     
Impacted Files Coverage Δ
mobile/mysterium/entrypoint.go 0.00% <0.00%> (ø)
mobile/mysterium/proposals_manager.go 74.19% <66.66%> (-1.67%) ⬇️
requests/dialer_swarm.go 73.68% <0.00%> (-4.39%) ⬇️
nat/traversal/pinger.go 74.31% <0.00%> (+5.46%) ⬆️
core/connection/connection_validator.go 63.15% <0.00%> (+6.01%) ⬆️

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 efc5d1e...41285ba. Read the comment docs.

@mdomasevicius
mdomasevicius merged commit 56a603d into master Jun 15, 2021
@mdomasevicius
mdomasevicius deleted the features/proposal-caching branch June 15, 2021 07:29
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.

4 participants