chore(docs): Fix examples link (#202)
* url is just examples, not tonic-examples * Change root directory from tonic-examples to examples. Matches current directory structure.
This commit is contained in:
@@ -7,7 +7,7 @@ use tonic::transport::{Certificate, Channel, ClientTlsConfig};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let pem = tokio::fs::read("tonic-examples/data/tls/ca.pem").await?;
|
||||
let pem = tokio::fs::read("examples/data/tls/ca.pem").await?;
|
||||
let ca = Certificate::from_pem(pem);
|
||||
|
||||
let tls = ClientTlsConfig::new()
|
||||
|
||||
@@ -51,8 +51,8 @@ impl pb::echo_server::Echo for EchoServer {
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let cert = tokio::fs::read("tonic-examples/data/tls/server.pem").await?;
|
||||
let key = tokio::fs::read("tonic-examples/data/tls/server.key").await?;
|
||||
let cert = tokio::fs::read("examples/data/tls/server.pem").await?;
|
||||
let key = tokio::fs::read("examples/data/tls/server.key").await?;
|
||||
|
||||
let identity = Identity::from_pem(cert, key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user