Skip to content

Introduce new services - #5321

Merged
yeszhanov95 merged 8 commits into
masterfrom
introduce-new-services
Jul 21, 2022
Merged

Introduce new services#5321
yeszhanov95 merged 8 commits into
masterfrom
introduce-new-services

Conversation

@yeszhanov95

@yeszhanov95 yeszhanov95 commented Jul 21, 2022

Copy link
Copy Markdown
Contributor

Added new service types, namely: scraping and data_transfer. These new services will be enabled later, when we prepare all components.
New services could be accessed only by whitelisted consumers.
As for now, all the three services have the same pricing, later I will set up for each individually.

According to #5262

Comment thread cmd/commands/service/command.go Outdated
// Other services could be started only explicitly.
serviceTypes := []string{wireguard.ServiceType}
// If no service type specified we are starting wireguard, scraping and data_transfer.
serviceTypes := []string{wireguard.ServiceType, scraping.ServiceType, data_transfer.ServiceType}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's not start it automatically now. We need to prepare other components for it.
Later we will enable it for sure.

Comment thread mobile/mysterium/proposals_manager.go Outdated

// Ideally api should allow to pass multiple service types to skip noop
// proposals, but for now just filter in memory.
serviceTypesDict := map[string]bool{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just serviceTypes without Dict will be the same clear but shorter. We already know that this is a map, no need to put it into the variable name.

@yeszhanov95 yeszhanov95 reopened this Jul 21, 2022
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #5321 (3b15604) into master (de4d790) will decrease coverage by 0.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5321      +/-   ##
==========================================
- Coverage   38.67%   38.57%   -0.11%     
==========================================
  Files         356      356              
  Lines       19450    19455       +5     
==========================================
- Hits         7523     7505      -18     
- Misses      11185    11206      +21     
- Partials      742      744       +2     
Impacted Files Coverage Δ
mobile/mysterium/proposals_manager.go 64.76% <100.00%> (+1.76%) ⬆️
nat/traversal/pinger.go 70.93% <0.00%> (-6.59%) ⬇️
requests/dialer_swarm.go 73.68% <0.00%> (-2.26%) ⬇️
session/pingpong/consumer_balance_tracker.go 56.63% <0.00%> (-0.72%) ⬇️
p2p/channel.go 66.78% <0.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 de4d790...3b15604. Read the comment docs.

@yeszhanov95
yeszhanov95 merged commit f8710f9 into master Jul 21, 2022
@yeszhanov95
yeszhanov95 deleted the introduce-new-services branch July 21, 2022 11:46
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