sorock 0.12.0

A Multi-Raft implementation in Rust
Documentation
use tonic_reflection::server::v1::{ServerReflection, ServerReflectionServer};

const FILE_DESCRIPTOR_SET: &[u8] = tonic::include_file_descriptor_set!("sorock_descriptor");

/// Create a reflection service.
pub fn new() -> ServerReflectionServer<impl ServerReflection> {
    let svc = tonic_reflection::server::Builder::configure()
        .register_encoded_file_descriptor_set(FILE_DESCRIPTOR_SET)
        .build_v1()
        .unwrap();

    svc
}

#[cfg(test)]
mod tests {
    use super::*;
    #[test]
    fn test_new() {
        new();
    }
}