diff --git a/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/get/batch_get_inference_job_status_handler.rs b/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/get/batch_get_inference_job_status_handler.rs index a3fb735263..e00de86dd3 100644 --- a/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/get/batch_get_inference_job_status_handler.rs +++ b/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/get/batch_get_inference_job_status_handler.rs @@ -39,7 +39,7 @@ use utoipa::{IntoParams, ToSchema}; /// maintained a keepalive. This prevents wasted work when users who are unlikely to return /// navigate away. Premium users have accounts and can always return to the site, so they /// typically do not require keepalive. -const JOB_KEEPALIVE_TTL_SECONDS : usize = 60 * 3; +const JOB_KEEPALIVE_TTL_SECONDS : u64 = 60 * 3; #[derive(Deserialize, ToSchema, IntoParams)] pub struct BatchGetInferenceJobStatusQueryParams { diff --git a/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/get/get_inference_job_status_handler.rs b/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/get/get_inference_job_status_handler.rs index da834cd23b..19fd7f0f90 100644 --- a/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/get/get_inference_job_status_handler.rs +++ b/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/get/get_inference_job_status_handler.rs @@ -37,7 +37,7 @@ use utoipa::ToSchema; /// maintained a keepalive. This prevents wasted work when users who are unlikely to return /// navigate away. Premium users have accounts and can always return to the site, so they /// typically do not require keepalive. -const JOB_KEEPALIVE_TTL_SECONDS : usize = 60 * 3; +const JOB_KEEPALIVE_TTL_SECONDS : u64 = 60 * 3; /// For the URL PathInfo #[derive(Deserialize, ToSchema)] diff --git a/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/list/list_session_jobs_handler.rs b/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/list/list_session_jobs_handler.rs index 61ba3f80fa..ac89947ad4 100644 --- a/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/list/list_session_jobs_handler.rs +++ b/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/list/list_session_jobs_handler.rs @@ -40,7 +40,7 @@ use utoipa::{IntoParams, ToSchema}; /// maintained a keepalive. This prevents wasted work when users who are unlikely to return /// navigate away. Premium users have accounts and can always return to the site, so they /// typically do not require keepalive. -const JOB_KEEPALIVE_TTL_SECONDS : usize = 60 * 3; +const JOB_KEEPALIVE_TTL_SECONDS : u64 = 60 * 3; #[derive(Debug, ToSchema)] pub enum ListSessionJobsError { diff --git a/crates/service/web/storyteller_web/src/state/server_state.rs b/crates/service/web/storyteller_web/src/state/server_state.rs index 07412551bd..1bcf1cf682 100644 --- a/crates/service/web/storyteller_web/src/state/server_state.rs +++ b/crates/service/web/storyteller_web/src/state/server_state.rs @@ -1,6 +1,6 @@ use chrono::{DateTime, Utc}; use elasticsearch::Elasticsearch; -use r2d2_redis::{r2d2, RedisConnectionManager}; +use redis::Client; use sqlx::MySqlPool; use actix_helpers::middleware::banned_cidr_filter::banned_cidr_set::BannedCidrSet; @@ -75,7 +75,7 @@ pub struct ServerState { pub elasticsearch: Elasticsearch, - pub redis_pool: r2d2::Pool, + pub redis_pool: r2d2::Pool, pub redis_ttl_cache: RedisTtlCache, pub redis_rate_limiters: RedisRateLimiters,