tikv / raft-rs

Raft distributed consensus algorithm implemented in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using PROST in `Error`

e-ivkov opened this issue · comments

Seems like if the crate is built with prost-codec feature - then prost error should be there

CodecError(#[from] protobuf::ProtobufError),

commented

We use protobuf-build to unify the APIs and use rust-protobuf versions, that's why there is only one type of error.

commented

Closed as answered.

Out of thread, I wonder about the rationale of choosing between rust-protobuf and prost. Is there some best practices or benchmark?

commented

We prefer rust-protobuf because it's more function-complete and well proved in production. In the long term, I think the official protobuf implementation is preferred.