From a69d232428f015ca44939b355fe4bc98ae08dbdc Mon Sep 17 00:00:00 2001 From: "Eason(G Ray)" <30045503+Eason0729@users.noreply.github.com> Date: Tue, 3 Sep 2024 00:51:12 +0800 Subject: [PATCH] feat(backend): release testcase size requirement --- backend/migration/src/m20240821_000001_create_tag.rs | 1 - backend/src/util/bound.rs | 2 +- docker/dev/backend/config/config.toml | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/migration/src/m20240821_000001_create_tag.rs b/backend/migration/src/m20240821_000001_create_tag.rs index 43f26fe..5bfce4c 100644 --- a/backend/migration/src/m20240821_000001_create_tag.rs +++ b/backend/migration/src/m20240821_000001_create_tag.rs @@ -1,5 +1,4 @@ use crate::m20231207_000001_create_table::Problem; -use sea_orm::{DatabaseBackend, Statement}; use sea_orm_migration::prelude::*; #[derive(Iden)] diff --git a/backend/src/util/bound.rs b/backend/src/util/bound.rs index cd047df..1d7f947 100644 --- a/backend/src/util/bound.rs +++ b/backend/src/util/bound.rs @@ -235,7 +235,7 @@ impl BoundCheck for CreateSubmitRequest { impl BoundCheck for CreateTestcaseRequest { fn check(&self) -> bool { - self.info.input.len() > 256 * 1024 || self.info.output.len() > 256 * 1024 + self.info.input.len() > 16 * 1024 * 1024 || self.info.output.len() > 16 * 1024 * 1024 } } diff --git a/docker/dev/backend/config/config.toml b/docker/dev/backend/config/config.toml index 592e29b..eef5599 100644 --- a/docker/dev/backend/config/config.toml +++ b/docker/dev/backend/config/config.toml @@ -1,6 +1,6 @@ address = "0.0.0.0:8080" -log = 0 -opentelemetry = "grpc://jaeger:4317" +log = 1 +# opentelemetry = "http://jaeger:4317" default_role = "user" [database]