stepancheg / grpc-rust

Rust implementation of gRPC
MIT License
1.38k stars 124 forks source link

TLS client panic! #195

Open mcjing opened 2 years ago

mcjing commented 2 years ago

TLS client paniced, i had try the greeter demo, the client paniced with a unimpl error.

https://github.com/stepancheg/grpc-rust/blob/master/grpc/src/client/mod.rs:104

let (host, port) = match self.client_type {
    ClientBuilderType::Tcp { host, port } => {
        match self.tls {
            Tls::Explict(_) => {
                todo!()
            }
            Tls::Implicit(x) => {
                builder.set_tls_dyn(host, x)?;
            }
            Tls::None => {}
        }
        builder.set_addr((host, port))?;
        (host, Some(port))
    }
    ClientBuilderType::Unix { socket } => {
        builder.set_unix_addr(socket)?;
        (socket, None)
    }
};