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: fix defer function in retry of NeoFSBlockFetcher #3736

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

AliceInHunterland
Copy link
Contributor

Close #3734

Drain the channel only if it has pending events. This avoids trying to
read from an already-empty channel.

Close #3734

Signed-off-by: Ekaterina Pavlova <[email protected]>
Copy link

codecov bot commented Dec 7, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 82.88%. Comparing base (5f92da2) to head (3010324).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pkg/services/blockfetcher/blockfetcher.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3736      +/-   ##
==========================================
- Coverage   82.91%   82.88%   -0.03%     
==========================================
  Files         335      335              
  Lines       46847    46848       +1     
==========================================
- Hits        38841    38831      -10     
- Misses       6411     6419       +8     
- Partials     1595     1598       +3     

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

<-timer.C
select {
case <-timer.C:
default:
Copy link
Member

Choose a reason for hiding this comment

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

🎉

@AnnaShaleva AnnaShaleva merged commit 35c2c5c into master Dec 9, 2024
32 of 34 checks passed
@AnnaShaleva AnnaShaleva deleted the retry branch December 9, 2024 09:08
AnnaShaleva added a commit that referenced this pull request Dec 9, 2024
Ref. #3736.

Signed-off-by: Anna Shaleva <[email protected]>
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.

NeoFS BlockFetcher is hanging on startup
2 participants