fix: adjust typo and incorrect function

This commit is contained in:
drbh 2024-01-26 14:30:21 -05:00
parent 7513c057db
commit 384b4eaec4

View File

@ -1065,9 +1065,9 @@ pub async fn run(
if cfg!(feature = "google") { if cfg!(feature = "google") {
tracing::info!("Built with `google` feature"); tracing::info!("Built with `google` feature");
tracing::info!("Enviorment variables `AIP_PREDICT_ROUTE` and `AIP_HEALTH_ROUTE` will be respected."); tracing::info!("Environment variables `AIP_PREDICT_ROUTE` and `AIP_HEALTH_ROUTE` will be respected.");
if let Ok(env_predict_route) = std::env::var("AIP_PREDICT_ROUTE") { if let Ok(env_predict_route) = std::env::var("AIP_PREDICT_ROUTE") {
app = app.route(&env_predict_route, post(compat_generate)); app = app.route(&env_predict_route, post(vertex_compatibility));
} }
if let Ok(env_health_route) = std::env::var("AIP_HEALTH_ROUTE") { if let Ok(env_health_route) = std::env::var("AIP_HEALTH_ROUTE") {
app = app.route(&env_health_route, get(health)); app = app.route(&env_health_route, get(health));