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

Generalize AnyError #1179

Open
schreter opened this issue Jul 18, 2024 · 1 comment
Open

Generalize AnyError #1179

schreter opened this issue Jul 18, 2024 · 1 comment
Assignees

Comments

@schreter
Copy link
Collaborator

Currently, openraft uses anyerror crate, which allows passing "any" errors.

However, AnyError is understandably somewhat limited, since it was written for general public. In our project, we use a different version of AnyError which allows better diagnostics and also stores some errors in-place. Plus, it won't panic on OOM.

Therefore, it would be helpful to generalize AnyError via the configuration to be able to use a different implementation. Since the API is quite small, it should be fairly trivial.

Copy link

👋 Thanks for opening this issue!

Get help or engage by:

  • /help : to print help messages.
  • /assignme : to assign this issue to you.

@drmingdrmer drmingdrmer self-assigned this Jul 18, 2024
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

No branches or pull requests

2 participants