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

feat(shwap): Add close once file #3484

Merged
merged 3 commits into from
Jun 17, 2024
Merged

Conversation

walldiss
Copy link
Member

Adds middleware to protect AccessorCloser from multiple Closes.

Based on #3425

@walldiss walldiss added kind:feat Attached to feature PRs shwap labels Jun 10, 2024
@walldiss walldiss self-assigned this Jun 10, 2024
@walldiss walldiss force-pushed the shwap branch 4 times, most recently from c4550bf to 60e757e Compare June 10, 2024 11:58
@Wondertan
Copy link
Member

Needs rebase

@Wondertan
Copy link
Member

Why ValidationAccessor would need to manage state of underlying accessor being closed. Doesnt seem like that should be it responsibility

@walldiss
Copy link
Member Author

Why ValidationAccessor would need to manage state of underlying accessor being closed. Doesnt seem like that should be it responsibility

ValidationAccessor is different PR

@codecov-commenter
Copy link

codecov-commenter commented Jun 11, 2024

Codecov Report

Attention: Patch coverage is 78.57143% with 6 lines in your changes missing coverage. Please review.

Please upload report for BASE (shwap@c78f081). Learn more about missing BASE report.

Files Patch % Lines
share/new_eds/close_once.go 78.57% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             shwap    #3484   +/-   ##
========================================
  Coverage         ?   43.93%           
========================================
  Files            ?      288           
  Lines            ?    16619           
  Branches         ?        0           
========================================
  Hits             ?     7302           
  Misses           ?     8483           
  Partials         ?      834           

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

@Wondertan
Copy link
Member

It wasnt though

@walldiss walldiss merged commit e9fe211 into celestiaorg:shwap Jun 17, 2024
27 checks passed
walldiss added a commit to walldiss/celestia-node that referenced this pull request Jul 6, 2024
Adds middleware to protect AccessorCloser from multiple Closes.

Based on celestiaorg#3425
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feat Attached to feature PRs shwap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants