Unverified Commit 9e169ea8 authored by Bruce-x-1997's avatar Bruce-x-1997 Committed by GitHub
Browse files

[router] add right rustls dependency in sgl-router cargo.toml (#9498)


Co-authored-by: default avatarbruce.xu <bruce.xu@gmicloud.ai>
parent e0ab167d
......@@ -55,6 +55,7 @@ anyhow = "1.0"
tokenizers = { version = "0.21.4", optional = true }
tiktoken-rs = { version = "0.7.0", optional = true }
minijinja = { version = "2.0", optional = true }
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
# gRPC and Protobuf dependencies
tonic = { version = "0.12", features = ["tls", "gzip", "transport"] }
......
......@@ -10,6 +10,7 @@ use kube::{
};
use std::collections::{HashMap, HashSet};
use rustls;
use std::sync::{Arc, Mutex};
use std::time::Duration;
use tokio::task;
......@@ -187,6 +188,8 @@ pub async fn start_service_discovery(
}));
}
let _ = rustls::crypto::ring::default_provider().install_default();
// Initialize Kubernetes client
let client = Client::try_default().await?;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment