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

services: add default values for NeoFSBlockFetcher configuration #3742

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

AliceInHunterland
Copy link
Contributor

The minimum sufficient configuration is Addresses and ContainerID, for example:

  NeoFSBlockFetcher:
    Enabled: true
    Addresses:
      - st1.storage.fs.neo.org:8080
      - st2.storage.fs.neo.org:8080
      - st3.storage.fs.neo.org:8080
      - st4.storage.fs.neo.org:8080
    ContainerID: "87JRc7vyWcjW8uS32LMoLTAj4ckCzFZWfKbacjU3sAob"

Close #3718

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

Attention: Patch coverage is 45.65217% with 25 lines in your changes missing coverage. Please review.

Project coverage is 83.04%. Comparing base (283ca5c) to head (65bdc82).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
cli/util/upload_bin.go 15.78% 16 Missing ⚠️
pkg/services/blockfetcher/blockfetcher.go 60.86% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3742      +/-   ##
==========================================
+ Coverage   82.96%   83.04%   +0.07%     
==========================================
  Files         335      335              
  Lines       46763    46769       +6     
==========================================
+ Hits        38799    38837      +38     
+ Misses       6369     6335      -34     
- Partials     1595     1597       +2     

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

@AliceInHunterland AliceInHunterland force-pushed the default-blockfetcher-config branch from 311eda4 to 9e09f56 Compare December 12, 2024 10:05
@AnnaShaleva
Copy link
Member

@AliceInHunterland, please rebase onto fresh master and fix unresolved conversations.

scripts/go.mod Outdated Show resolved Hide resolved
@AliceInHunterland AliceInHunterland force-pushed the default-blockfetcher-config branch from e59780a to aecbbd7 Compare December 12, 2024 13:45
cli/util/convert.go Show resolved Hide resolved
pkg/config/blockfetcher_config.go Show resolved Hide resolved
pkg/services/blockfetcher/blockfetcher.go Outdated Show resolved Hide resolved
pkg/services/neofs/blockstorage.go Outdated Show resolved Hide resolved
pkg/services/neofs/blockstorage.go Outdated Show resolved Hide resolved
pkg/services/neofs/blockstorage.go Outdated Show resolved Hide resolved
The minimum sufficient configuration is Addresses and ContainerID,
example:
```
  NeoFSBlockFetcher:
    Enabled: true
    Addresses:
      - st1.storage.fs.neo.org:8080
      - st2.storage.fs.neo.org:8080
      - st3.storage.fs.neo.org:8080
      - st4.storage.fs.neo.org:8080
    ContainerID: "87JRc7vyWcjW8uS32LMoLTAj4ckCzFZWfKbacjU3sAob"
```

Close #3718

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
@AnnaShaleva AnnaShaleva merged commit 38f635b into master Dec 13, 2024
33 of 34 checks passed
@AnnaShaleva AnnaShaleva deleted the default-blockfetcher-config branch December 13, 2024 09:17
AnnaShaleva added a commit that referenced this pull request Dec 13, 2024
Follow #3742.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
AnnaShaleva added a commit that referenced this pull request Dec 13, 2024
Follow #3742.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
AnnaShaleva added a commit that referenced this pull request Dec 13, 2024
Follow #3742.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
AnnaShaleva added a commit that referenced this pull request Dec 13, 2024
Follow #3742.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
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.

Take care of default NeoFSBlockFetcher config values
3 participants