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 DeleteGroups function to Client #1095

Merged
merged 5 commits into from
Mar 27, 2023
Merged

Conversation

bgranvea
Copy link
Contributor

Implement DeleteGroups protocol and add it to Client.

Comment on lines 24 to 28
ErrorCode: 1,
},
{
GroupID: "group2",
ErrorCode: 1,
Copy link
Contributor

Choose a reason for hiding this comment

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

ErrorCode 1 is a failure, could you write a test case that succeeds as well

deletegroups.go Outdated
Comment on lines 56 to 60
if t.ErrorCode == 0 {
ret.Errors[t.GroupID] = nil
} else {
ret.Errors[t.GroupID] = Error(t.ErrorCode)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

use the makeError function instead of Error (see other examples for usage)

also don't need the if/else statement as makeError takes care of that too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the review, I've made the changes.

@nlsun nlsun self-assigned this Mar 24, 2023
@nlsun nlsun merged commit fd64eaa into segmentio:main Mar 27, 2023
@nlsun
Copy link
Contributor

nlsun commented Mar 27, 2023

Thanks @bgranvea !

@bgranvea bgranvea deleted the delete-groups branch October 6, 2023 07:08
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.

2 participants