-
Notifications
You must be signed in to change notification settings - Fork 23
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: respond to CancelACHFile events with FileCancellationResponse #228
Conversation
836d081
to
dd50370
Compare
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #228 +/- ##
==========================================
+ Coverage 47.61% 47.69% +0.08%
==========================================
Files 97 97
Lines 4379 4426 +47
==========================================
+ Hits 2085 2111 +26
- Misses 1962 1983 +21
Partials 332 332 ☔ View full report in Codecov by Sentry. |
path := filepath.Join("mergable", m.shard.Name, fmt.Sprintf("%s.ach", cancel.FileID)) | ||
|
||
// Check if the file exists already | ||
file, _ := m.storage.Open(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we check the error here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're just looking for if the file exists. Cancellation can only be successful if the file gets renamed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Fixes: #141, #142