mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
finish upgrade
This commit is contained in:
1 parent
9f3a6e4c61
commit
991b573b49
4 files changed
+5
-5
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
+1
-1
@@ -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)]
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
@@ -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<RedisConnectionManager>,
|
||||
pub redis_pool: r2d2::Pool<Client>,
|
||||
pub redis_ttl_cache: RedisTtlCache,
|
||||
|
||||
pub redis_rate_limiters: RedisRateLimiters,
|
||||
|
||||
Reference in new issue
Block a user