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

Fixing issue 35 #36

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Fixing issue 35 #36

merged 1 commit into from
Sep 26, 2023

Conversation

lemire
Copy link
Member

@lemire lemire commented Sep 26, 2023

Fixes #35

@lemire lemire merged commit 4f81a74 into master Sep 26, 2023
0 of 10 checks passed
}
return filter, nil
// the cosmic-ray probability (i.e., a cosmic ray corrupts your system).
return nil, errors.New("too many iterations")

Choose a reason for hiding this comment

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

would be better to define this as an exported error and return the error instead.
i.e.

var ErrTooManyIterations = errors.New("too many iterations")
...
return nil, ErrTooManyIterations

when testing this, you can you the explicit exported variable instead of comparing strings.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. Want to issue a pull request?

Choose a reason for hiding this comment

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

my computer isn't set up for that at the moment.. but maybe you could roll this onto the next set of changes you'll make ?

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.

xorfilter cannot pass this case
2 participants