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

Add DeleteEntry and DeleteADVEntry to Batcher #1511

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

kevinbarbour
Copy link
Contributor

closes #1509

Was also contemplating if it would be more useful to implement a DeleteFunc as the slices library provides, then it's easier to delete from the Entries slice based on arbitrary criteria instead of by maintaining or retrieving the pointer you want to delete. If that's preferable I can implement that.

@adamdecaf
Copy link
Member

Thinking about this more implementing them as DeleteFunc makes more sense. That lets callers control what is matched on to delete (and allows for deleting more than one entry)

@adamdecaf adamdecaf self-requested a review November 21, 2024 21:08
@kevinbarbour
Copy link
Contributor Author

Sounds good - yeah that's how I was thinking. I will update it to add that.

@adamdecaf adamdecaf merged commit e838056 into moov-io:master Nov 21, 2024
11 checks passed
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.

Is there a way to delete an entry from the batch?
2 participants