v0.9.13
Summary:
- Added:
- fb49efb3 Add
DecomposeResult
to simplify error handling.
- fb49efb3 Add
Detail:
Added:
-
Added: fb49efb3 Add
DecomposeResult
to simplify error handling; by 张炎泼; 2024-06-20This commit treats remote errors occurring during RPC, like a
Fatal
error, as anUnreachable
error. This is due to Openraft's current
inability to distinguish between an unreachable node and a broken node.- Helper trait
DecomposeResult
: Introduced to simplify handling
composite errors. It converts a result of the
formResult<R, ErrorAOrB>
into a nested resultResult<Result<R, ErrorA>, ErrorB>
.
- Helper trait