databendlabs / openraft

rust raft with improvements
Apache License 2.0
1.41k stars 158 forks source link

Generalize `AnyError` #1179

Open schreter opened 4 months ago

schreter commented 4 months ago

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.

github-actions[bot] commented 4 months ago

👋 Thanks for opening this issue!

Get help or engage by: